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 @@ 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