libxc: add std flag for Intel (#25281)

This commit is contained in:
downloadico
2021-08-09 06:05:42 -06:00
committed by GitHub
parent d4df3b31fb
commit be59f2bff0

View File

@@ -79,8 +79,10 @@ def setup_build_environment(self, env):
env.append_flags('CFLAGS', optflags)
env.append_flags('FCFLAGS', optflags)
if '%intel' in self.spec and which('xiar'):
env.set('AR', 'xiar')
if '%intel' in self.spec:
env.append_flags('CFLAGS', '-std=c99')
if which('xiar'):
env.set('AR', 'xiar')
if '%aocc' in self.spec:
env.append_flags('FCFLAGS', '-fPIC')