unifyfs %oneapi: -Wno-error=deprecated-non-prototype,unused-function (#33602)
This commit is contained in:
parent
23aada1d24
commit
e5274de7ec
@ -98,6 +98,9 @@ def flag_handler(self, name, flags):
|
||||
if "-g" in flags:
|
||||
self.debug_build = True
|
||||
if name == "cflags":
|
||||
if self.spec.satisfies("%oneapi@2022.2.0:"):
|
||||
flags.append("-Wno-error=deprecated-non-prototype")
|
||||
flags.append("-Wno-error=unused-function")
|
||||
if self.spec.satisfies("%gcc@4"):
|
||||
flags.append("-std=gnu99")
|
||||
return (None, None, flags)
|
||||
|
Loading…
Reference in New Issue
Block a user