Skip to content

Commit

Permalink
clang: fix error messages in c11_flag, cxx17_flag (spack#11632)
Browse files Browse the repository at this point in the history
  • Loading branch information
codeandkey authored and ax3l committed Jun 5, 2019
1 parent 3c0b746 commit f4e7786
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spack/spack/compilers/clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def cxx17_flag(self):
raise UnsupportedCompilerFlag(self,
"the C++17 standard",
"cxx17_flag",
"< 5.0")
"< 3.5")
elif self.version < ver('5.0'):
return "-std=c++1z"
else:
Expand All @@ -167,7 +167,7 @@ def c11_flag(self):
raise UnsupportedCompilerFlag(self,
"the C11 standard",
"c11_flag",
"< 3.3")
"< 6.1.0")
else:
return "-std=c11"

Expand Down

0 comments on commit f4e7786

Please sign in to comment.