diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/flex/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/flex/package.py b/var/spack/repos/builtin/packages/flex/package.py index c99c8ee4ae..768227fa88 100644 --- a/var/spack/repos/builtin/packages/flex/package.py +++ b/var/spack/repos/builtin/packages/flex/package.py @@ -66,6 +66,10 @@ class Flex(AutotoolsPackage): iflags.append("-Wno-error=implicit-function-declaration") return (iflags, None, None) + def setup_build_environment(self, env): + if self.spec.satisfies("%oneapi@2023.0.0:"): + env.set("CFLAGS", "-Wno-error=implicit-function-declaration") + @classmethod def determine_version(cls, exe): output = Executable(exe)("--version", output=str, error=str) |