flex %oneapi: add -Wno-implicit-function-declaration (#32073)
This commit is contained in:
parent
53e41ca9f1
commit
d402c1d6b5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user