libxc: add std flag for Intel (#25281)
This commit is contained in:
parent
d4df3b31fb
commit
be59f2bff0
1 changed files with 4 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue