diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cp2k/package.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/cp2k/package.py b/var/spack/repos/builtin/packages/cp2k/package.py index 4bccecf860..0cbcf8f56e 100644 --- a/var/spack/repos/builtin/packages/cp2k/package.py +++ b/var/spack/repos/builtin/packages/cp2k/package.py @@ -437,6 +437,7 @@ class Cp2k(MakefilePackage, CudaPackage): mkf.write('CC = {0.compiler.cc}\n'.format(self)) if '%intel' in self.spec: + intel_bin_dir = ancestor(self.compiler.cc) # CPP is a commented command in Intel arch of CP2K # This is the hack through which cp2k developers avoid doing : # @@ -444,7 +445,7 @@ class Cp2k(MakefilePackage, CudaPackage): # # and use `-fpp` instead mkf.write('CPP = # {0.compiler.cc} -P\n\n'.format(self)) - mkf.write('AR = xiar -r\n\n') + mkf.write('AR = {0}/xiar -r\n\n'.format(intel_bin_dir)) else: mkf.write('CPP = # {0.compiler.cc} -E\n\n'.format(self)) mkf.write('AR = ar -r\n\n') |