Skip to content
Snippets Groups Projects
Commit f86ed1e3 authored by Jimmy Tang's avatar Jimmy Tang Committed by Adam J. Stewart
Browse files

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
parent a017c5e2
Branches
Tags
No related merge requests found
...@@ -389,6 +389,9 @@ def install(self, spec, prefix): ...@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment