summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJustin S <3630356+codeandkey@users.noreply.github.com>2019-06-05 16:51:38 -0500
committerAxel Huebl <axel.huebl@plasma.ninja>2019-06-05 23:51:38 +0200
commitf4e7786786fff4267fe574b0fa0605477bd7eb85 (patch)
tree77784737797c8f163341ae5a7fa77116f3e055ae /lib
parent3c0b746f44dcbe8b6d73dccc61cf79c9d941330f (diff)
downloadspack-f4e7786786fff4267fe574b0fa0605477bd7eb85.tar.gz
spack-f4e7786786fff4267fe574b0fa0605477bd7eb85.tar.bz2
spack-f4e7786786fff4267fe574b0fa0605477bd7eb85.tar.xz
spack-f4e7786786fff4267fe574b0fa0605477bd7eb85.zip
clang: fix error messages in c11_flag, cxx17_flag (#11632)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/compilers/clang.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/compilers/clang.py b/lib/spack/spack/compilers/clang.py
index 658884b5de..352e842412 100644
--- a/lib/spack/spack/compilers/clang.py
+++ b/lib/spack/spack/compilers/clang.py
@@ -151,7 +151,7 @@ class Clang(Compiler):
raise UnsupportedCompilerFlag(self,
"the C++17 standard",
"cxx17_flag",
- "< 5.0")
+ "< 3.5")
elif self.version < ver('5.0'):
return "-std=c++1z"
else:
@@ -167,7 +167,7 @@ class Clang(Compiler):
raise UnsupportedCompilerFlag(self,
"the C11 standard",
"c11_flag",
- "< 3.3")
+ "< 6.1.0")
else:
return "-std=c11"