summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2014-02-25 11:54:25 +0000
committerAlexander Potapenko <glider@google.com>2014-02-25 11:54:25 +0000
commit977baa5d80ffab94f63bfe5a69c6f2981475106b (patch)
treec96e81590a3693cf7fa6ed9bfd4e929857930742
parentd3c6cb31a753b380508c7bd9213f9312dcdca167 (diff)
[ASan] Don't set rpath when building ASan runtime libraries.
This should fix the issues with `make check-asan` on OS X. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202144 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/asan/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/asan/CMakeLists.txt b/lib/asan/CMakeLists.txt
index 4f4aefa57..32f209e61 100644
--- a/lib/asan/CMakeLists.txt
+++ b/lib/asan/CMakeLists.txt
@@ -1,5 +1,12 @@
# Build for the AddressSanitizer runtime support library.
+if(APPLE)
+# Don't set rpath for the ASan libraries. Developers are encouraged to ship
+# their binaries together with the corresponding ASan runtime libraries,
+# so they'll anyway need to fix the rpath and the install name.
+set(CMAKE_BUILD_WITH_INSTALL_RPATH OFF)
+endif()
+
set(ASAN_SOURCES
asan_allocator2.cc
asan_activation.cc