cp2k: explicitly use C99 standard (#34957)
This commit is contained in:
parent
bfe06f694c
commit
5079086019
1 changed files with 4 additions and 0 deletions
|
@ -340,6 +340,10 @@ def edit(self, spec, prefix):
|
|||
libs = []
|
||||
gpuver = ""
|
||||
|
||||
# CP2K Makefile doesn't set C standard, but the source code uses
|
||||
# C99-style for-loops with inline definition of iterating variable.
|
||||
cflags.append(self.compiler.c99_flag)
|
||||
|
||||
if "%intel" in spec:
|
||||
cflags.append("-fp-model precise")
|
||||
cxxflags.append("-fp-model precise")
|
||||
|
|
Loading…
Reference in a new issue