diff --git a/var/spack/repos/builtin/packages/curl/package.py b/var/spack/repos/builtin/packages/curl/package.py index 362b559ab6..f26247a44a 100644 --- a/var/spack/repos/builtin/packages/curl/package.py +++ b/var/spack/repos/builtin/packages/curl/package.py @@ -345,6 +345,12 @@ def determine_variants(cls, exes, version): def command(self): return Executable(self.prefix.bin.join("curl-config")) + def flag_handler(self, name, flags): + build_system_flags = [] + if name == "cflags" and self.spec.compiler.name in ["intel", "oneapi"]: + build_system_flags = ["-we147"] + return flags, None, build_system_flags + class AutotoolsBuilder(AutotoolsBuilder): def configure_args(self):