sed %oneapi@2023.0.0: -Wno-error=incompatible-function-pointer-types (#34898)
This commit is contained in:
parent
a1c840b3e8
commit
deef4177f7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user