Add cxx17_flag to intel.py (#41207)

* Add cxx17_flag to intel.py
This commit is contained in:
Alex Richert 2023-11-21 17:08:02 -08:00 committed by GitHub
parent f2192a48ce
commit 432f5d64e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,14 @@ def cxx14_flag(self):
else:
return "-std=c++14"
@property
def cxx17_flag(self):
# https://www.intel.com/content/www/us/en/developer/articles/news/c17-features-supported-by-c-compiler.html
if self.real_version < Version("19"):
raise UnsupportedCompilerFlag(self, "the C++17 standard", "cxx17_flag", "< 19")
else:
return "-std=c++17"
@property
def c99_flag(self):
if self.real_version < Version("12"):