llvm: fix for building llvm using Cray PE (#12734)

Signed-off-by: Howard Pritchard <hppritcha@gmail.com>
This commit is contained in:
Howard Pritchard 2019-12-11 10:51:45 -07:00 committed by Adam J. Stewart
parent 3cd6ca02d2
commit e7a03d07b6

View file

@ -334,7 +334,9 @@ 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'):
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: