Skip to content
Snippets Groups Projects
Commit 3690bc44 authored by Glenn Johnson's avatar Glenn Johnson Committed by Adam J. Stewart
Browse files

Set full xiar path when building cp2k with intel compiler (#14268)

parent b83365c9
Branches
Tags
No related merge requests found
...@@ -437,6 +437,7 @@ def edit(self, spec, prefix): ...@@ -437,6 +437,7 @@ def edit(self, spec, prefix):
mkf.write('CC = {0.compiler.cc}\n'.format(self)) mkf.write('CC = {0.compiler.cc}\n'.format(self))
if '%intel' in self.spec: if '%intel' in self.spec:
intel_bin_dir = ancestor(self.compiler.cc)
# CPP is a commented command in Intel arch of CP2K # CPP is a commented command in Intel arch of CP2K
# This is the hack through which cp2k developers avoid doing : # This is the hack through which cp2k developers avoid doing :
# #
...@@ -444,7 +445,7 @@ def edit(self, spec, prefix): ...@@ -444,7 +445,7 @@ def edit(self, spec, prefix):
# #
# and use `-fpp` instead # and use `-fpp` instead
mkf.write('CPP = # {0.compiler.cc} -P\n\n'.format(self)) 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: else:
mkf.write('CPP = # {0.compiler.cc} -E\n\n'.format(self)) mkf.write('CPP = # {0.compiler.cc} -E\n\n'.format(self))
mkf.write('AR = ar -r\n\n') mkf.write('AR = ar -r\n\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment