GCC 14 needs C-standards workaround flags (#48019)

This commit is contained in:
Brian Vanderwende 2025-02-17 16:33:16 -07:00 committed by GitHub
parent 5931236f55
commit cec7e6c4b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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