summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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"