extrae: fix build with gcc@14 (#47407)
This commit is contained in:
parent
1297dd7fbc
commit
6b5a479d1e
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user