summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJimmy Tang <jcftang@gmail.com>2017-04-21 17:29:42 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2017-04-21 11:29:41 -0500
commitf86ed1e34dc90bade8127b490a4b8823d2af6514 (patch)
treea55374c1596eab7ba58c083952f9fe1da29907ba /var
parenta017c5e2efd479c27debba28c4cdbba52a0bba81 (diff)
downloadspack-f86ed1e34dc90bade8127b490a4b8823d2af6514.tar.gz
spack-f86ed1e34dc90bade8127b490a4b8823d2af6514.tar.bz2
spack-f86ed1e34dc90bade8127b490a4b8823d2af6514.tar.xz
spack-f86ed1e34dc90bade8127b490a4b8823d2af6514.zip
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
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/llvm/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py
index 398daefc8f..04b4efd491 100644
--- a/var/spack/repos/builtin/packages/llvm/package.py
+++ b/var/spack/repos/builtin/packages/llvm/package.py
@@ -389,6 +389,9 @@ class Llvm(Package):
raise SpackException(
'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):
cmake(*cmake_args)
make()