GCC 14 needs C-standards workaround flags (#48019)
This commit is contained in:
parent
5931236f55
commit
cec7e6c4b5
@ -153,10 +153,15 @@ def flag_handler(self, name, flags):
|
||||
self.spec.satisfies("@:4.2.15 %apple-clang")
|
||||
or self.spec.satisfies("%clang@16:")
|
||||
or self.spec.satisfies("%oneapi")
|
||||
or self.spec.satisfies("%gcc@14:")
|
||||
):
|
||||
flags.append("-Wno-error=implicit-function-declaration")
|
||||
|
||||
if self.spec.satisfies("%clang@16:") or self.spec.satisfies("%apple-clang@15:"):
|
||||
if (
|
||||
self.spec.satisfies("%clang@16:")
|
||||
or self.spec.satisfies("%apple-clang@15:")
|
||||
or self.spec.satisfies("%gcc@14:")
|
||||
):
|
||||
flags.append("-Wno-error=implicit-int")
|
||||
|
||||
return flags, None, None
|
||||
|
Loading…
Reference in New Issue
Block a user