cp2k: explicitly use C99 standard (#34957)

This commit is contained in:
Mosè Giordano 2023-02-16 16:45:06 +00:00 committed by GitHub
parent bfe06f694c
commit 5079086019
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")