diff options
author | Howard Pritchard <hppritcha@gmail.com> | 2019-12-11 10:51:45 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-12-11 11:51:44 -0600 |
commit | e7a03d07b60a04b1d88823765694133b6d2bb8a5 (patch) | |
tree | 8d2ec2e17b740e36b0af71ea95d08771fbe3a645 | |
parent | 3cd6ca02d2d58c42d6864b25ed5e4479557eaa8c (diff) | |
download | spack-e7a03d07b60a04b1d88823765694133b6d2bb8a5.tar.gz spack-e7a03d07b60a04b1d88823765694133b6d2bb8a5.tar.bz2 spack-e7a03d07b60a04b1d88823765694133b6d2bb8a5.tar.xz spack-e7a03d07b60a04b1d88823765694133b6d2bb8a5.zip |
llvm: fix for building llvm using Cray PE (#12734)
Signed-off-by: Howard Pritchard <hppritcha@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/llvm/package.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index 87b598263c..97c4a57b2c 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -334,8 +334,10 @@ class Llvm(CMakePackage): 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 |