unifyfs: Apply workaround for oneAPI compiler for problem with build (#48962)

This commit is contained in:
Piotr Sacharuk 2025-02-12 19:25:34 +01:00 committed by GitHub
parent a8e37ccbbb
commit 02c2516e88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,10 +112,12 @@ def setup_build_environment(self, env):
if self.spec.satisfies("%oneapi"): if self.spec.satisfies("%oneapi"):
env.append_flags("CFLAGS", "-Wno-unused-function") env.append_flags("CFLAGS", "-Wno-unused-function")
@when("%cce@11.0.3:")
def patch(self): def patch(self):
if self.spec.satisfies("%cce@11.0.3:"):
filter_file("-Werror", "", "client/src/Makefile.in") filter_file("-Werror", "", "client/src/Makefile.in")
filter_file("-Werror", "", "client/src/Makefile.am") filter_file("-Werror", "", "client/src/Makefile.am")
if self.spec.satisfies("@2.0 %oneapi@2025:"):
filter_file("static int asprintf", "int asprintf", "examples/src/testutil.c")
@when("@develop") @when("@develop")
def autoreconf(self, spec, prefix): def autoreconf(self, spec, prefix):