flex %oneapi: add -Wno-implicit-function-declaration (#32073)

This commit is contained in:
eugeneswalker 2022-08-14 08:48:32 -07:00 committed by GitHub
parent 53e41ca9f1
commit d402c1d6b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,14 @@ class Flex(AutotoolsPackage):
when="@2.6.4",
)
def flag_handler(self, name, flags):
spec = self.spec
iflags = []
if name == "cflags":
if spec.satisfies("%oneapi"):
iflags.append("-Wno-error=implicit-function-declaration")
return (iflags, None, None)
@classmethod
def determine_version(cls, exe):
output = Executable(exe)("--version", output=str, error=str)