Fix libxc cflag (#34000)

Using standard c99 should not be specific to intel compilers.
This commit is contained in:
Cristian Le 2022-11-29 13:45:28 +01:00 committed by GitHub
parent 1270ae1526
commit c6ee30497c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,8 +73,10 @@ def setup_build_environment(self, env):
# by Spack, otherwise we may end up with contradictory or invalid flags # by Spack, otherwise we may end up with contradictory or invalid flags
# see https://github.com/spack/spack/issues/17794 # 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: if "%intel" in self.spec:
env.append_flags("CFLAGS", "-std=c99")
if which("xiar"): if which("xiar"):
env.set("AR", "xiar") env.set("AR", "xiar")