boost %oneapi: add cxxflags -Wno-error=enum-constexpr-conversion (#39477)

This commit is contained in:
eugeneswalker 2023-08-17 04:49:20 -07:00 committed by GitHub
parent b19691d503
commit 82685a68d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -431,6 +431,12 @@ def url_for_version(self, version):
return url.format(version.dotted, version.underscored)
def flag_handler(self, name, flags):
if name == "cxxflags":
if self.spec.satisfies("@1.79.0 %oneapi"):
flags.append("-Wno-error=enum-constexpr-conversion")
return (flags, None, None)
def determine_toolset(self, spec):
toolsets = {
"g++": "gcc",