aboutsummaryrefslogtreecommitdiff
path: root/unittests
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
commit963a6fb932cbe43331011e43e1b90d9d86fbcd16 (patch)
tree5d0ef0111efffbfa7e27fb60d350718c8cac2c06 /unittests
parent0dac1fd93c97075f292a4ee8c72976ea693baa96 (diff)
downloadlld-963a6fb932cbe43331011e43e1b90d9d86fbcd16.tar.gz
[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) git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@281256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt
index bb651b5cf..9cd085398 100644
--- a/unittests/CMakeLists.txt
+++ b/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