clang: fix error messages in c11_flag, cxx17_flag (#11632)
This commit is contained in:
parent
3c0b746f44
commit
f4e7786786
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user