cp2k: explicitly use C99 standard (#34957)
This commit is contained in:
parent
bfe06f694c
commit
5079086019
@ -340,6 +340,10 @@ def edit(self, spec, prefix):
|
|||||||
libs = []
|
libs = []
|
||||||
gpuver = ""
|
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:
|
if "%intel" in spec:
|
||||||
cflags.append("-fp-model precise")
|
cflags.append("-fp-model precise")
|
||||||
cxxflags.append("-fp-model precise")
|
cxxflags.append("-fp-model precise")
|
||||||
|
Loading…
Reference in New Issue
Block a user