summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-09-12 20:44:53 +0000
committerDavide Italiano <davide@freebsd.org>2016-09-12 20:44:53 +0000
commit3582242aa38a2d4529009f47a568de35ebed1db4 (patch)
tree7562f2343870d98d8bd62712b08312ed2b2dcb13
parent9a830b943374d122040268356b7dab9e8768806f (diff)
downloadbcm5719-llvm-3582242aa38a2d4529009f47a568de35ebed1db4.tar.gz
bcm5719-llvm-3582242aa38a2d4529009f47a568de35ebed1db4.zip
[Cmake] Use Cmake's default RPATH for unittest.
Similarly to what was done in r280791 for llvm/. This should fix a bunch of failures I saw while trying a BUILD_SHARED_LIBS build on MacOS. Still there are some failures, but this is a step forward. Thanks a lot to Chris Bieneman for the suggested fix (in PR30345) llvm-svn: 281256
-rw-r--r--lld/unittests/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/unittests/CMakeLists.txt b/lld/unittests/CMakeLists.txt
index bb651b5cfe6..9cd085398c3 100644
--- a/lld/unittests/CMakeLists.txt
+++ b/lld/unittests/CMakeLists.txt
@@ -1,6 +1,8 @@
add_custom_target(LLDUnitTests)
set_target_properties(LLDUnitTests PROPERTIES FOLDER "lld tests")
+set(CMAKE_BUILD_WITH_INSTALL_RPATH OFF)
+
# add_lld_unittest(test_dirname file1.cpp file2.cpp)
#
# Will compile the list of files together and link against lld
OpenPOWER on IntegriCloud