Skip to content

Commit

Permalink
llvm: fix for building llvm using Cray PE (spack#12734)
Browse files Browse the repository at this point in the history
Signed-off-by: Howard Pritchard <hppritcha@gmail.com>
  • Loading branch information
hppritcha authored and adamjstewart committed Dec 11, 2019
1 parent 3cd6ca0 commit e7a03d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions var/spack/repos/builtin/packages/llvm/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,10 @@ def cmake_args(self):
gcc_prefix = ancestor(self.compiler.cc, 2)
cmake_args.append('-DGCC_INSTALL_PREFIX=' + gcc_prefix)

if spec.satisfies('@4.0.0:') and spec.satisfies('platform=linux'):
cmake_args.append('-DCMAKE_BUILD_WITH_INSTALL_RPATH=1')
if spec.satisfies('@4.0.0:'):
if spec.satisfies('platform=cray') or \
spec.satisfies('platform=linux'):
cmake_args.append('-DCMAKE_BUILD_WITH_INSTALL_RPATH=1')

if '+flang' not in spec:
# Semicolon seperated list of projects to enable
Expand Down

0 comments on commit e7a03d0

Please sign in to comment.