diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cp2k/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cp2k/package.py b/var/spack/repos/builtin/packages/cp2k/package.py index 3daff41e5f..43b0d8ecfc 100644 --- a/var/spack/repos/builtin/packages/cp2k/package.py +++ b/var/spack/repos/builtin/packages/cp2k/package.py @@ -340,6 +340,10 @@ class Cp2k(MakefilePackage, CudaPackage): 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") |