From f4e7786786fff4267fe574b0fa0605477bd7eb85 Mon Sep 17 00:00:00 2001 From: Justin S <3630356+codeandkey@users.noreply.github.com> Date: Wed, 5 Jun 2019 16:51:38 -0500 Subject: clang: fix error messages in c11_flag, cxx17_flag (#11632) --- lib/spack/spack/compilers/clang.py | 4 ++-- 1 file 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" -- cgit v1.2.3-70-g09d2