Fix libxc cflag (#34000)
Using standard c99 should not be specific to intel compilers.
This commit is contained in:
parent
1270ae1526
commit
c6ee30497c
1 changed files with 3 additions and 1 deletions
|
@ -73,8 +73,10 @@ def setup_build_environment(self, env):
|
|||
# by Spack, otherwise we may end up with contradictory or invalid flags
|
||||
# see https://github.com/spack/spack/issues/17794
|
||||
|
||||
# https://gitlab.com/libxc/libxc/-/issues/430 (configure script does not ensure C99)
|
||||
# TODO: Switch to cmake since this is better supported
|
||||
env.append_flags("CFLAGS", self.compiler.c99_flag)
|
||||
if "%intel" in self.spec:
|
||||
env.append_flags("CFLAGS", "-std=c99")
|
||||
if which("xiar"):
|
||||
env.set("AR", "xiar")
|
||||
|
||||
|
|
Loading…
Reference in a new issue