extrae: fix build with gcc@14 (#47407)

This commit is contained in:
Mosè Giordano 2024-11-05 08:42:06 +00:00 committed by GitHub
parent 1297dd7fbc
commit 6b5a479d1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -169,6 +169,18 @@ def flag_handler(self, name, flags):
flags.append("-lintl") flags.append("-lintl")
elif name == "ldflags": elif name == "ldflags":
flags.append("-pthread") flags.append("-pthread")
# This is to work around
# <https://github.com/bsc-performance-tools/extrae/issues/115>.
if self.spec.satisfies("%gcc@14:") and name == "cflags":
flags.extend(
[
"-Wno-error=incompatible-pointer-types",
"-Wno-error=implicit-function-declaration",
"-Wno-error=int-conversion",
]
)
return self.build_system_flags(name, flags) return self.build_system_flags(name, flags)
def install(self, spec, prefix): def install(self, spec, prefix):