Fix for llvm 4.0.0 on centos (#3904)
* Fix for llvm 4.0.0 on centos This addresses https://github.com/LLNL/spack/issues/3791 * Only enable this option if on linux * Change condition to satisfy standard
This commit is contained in:
parent
a017c5e2ef
commit
f86ed1e34d
@ -389,6 +389,9 @@ def install(self, spec, prefix):
|
|||||||
raise SpackException(
|
raise SpackException(
|
||||||
'The lldb variant requires the `+clang` variant')
|
'The lldb variant requires the `+clang` variant')
|
||||||
|
|
||||||
|
if spec.satisfies('@4.0.0:') and spec.satisfies('platform=linux'):
|
||||||
|
cmake_args.append('-DCMAKE_BUILD_WITH_INSTALL_RPATH=1')
|
||||||
|
|
||||||
with working_dir('spack-build', create=True):
|
with working_dir('spack-build', create=True):
|
||||||
cmake(*cmake_args)
|
cmake(*cmake_args)
|
||||||
make()
|
make()
|
||||||
|
Loading…
Reference in New Issue
Block a user