clang: fix error messages in c11_flag, cxx17_flag (#11632)

This commit is contained in:
Justin S 2019-06-05 16:51:38 -05:00 committed by Axel Huebl
parent 3c0b746f44
commit f4e7786786

View File

@ -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:
@ -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"