sed %oneapi@2023.0.0: -Wno-error=incompatible-function-pointer-types (#34898)

This commit is contained in:
eugeneswalker 2023-01-12 10:53:00 -08:00 committed by GitHub
parent a1c840b3e8
commit deef4177f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,3 +35,10 @@ def determine_version(cls, exe):
version_regexp = r"{:s} \(GNU sed\) (\S+)".format(exe)
match = re.search(version_regexp, output)
return match.group(1) if match else None
def flag_handler(self, name, flags):
iflags = []
if name == "cflags":
if self.spec.satisfies("%oneapi@2023.0.0:"):
iflags.append("-Wno-error=incompatible-function-pointer-types")
return (iflags, None, None)