Fix curl install using Intel compilers (#41380)
When using Intel to build curl, add 'CFLAGS=-we147' to the configure args to fix error 'compiler does not halt on function prototype mismatch'
This commit is contained in:
parent
a632576231
commit
ca164d6619
1 changed files with 6 additions and 0 deletions
|
@ -345,6 +345,12 @@ def determine_variants(cls, exes, version):
|
||||||
def command(self):
|
def command(self):
|
||||||
return Executable(self.prefix.bin.join("curl-config"))
|
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):
|
class AutotoolsBuilder(AutotoolsBuilder):
|
||||||
def configure_args(self):
|
def configure_args(self):
|
||||||
|
|
Loading…
Reference in a new issue