[compiler-rt] r202144 - [ASan] Don't set rpath when building ASan runtime libraries.

Alexander Potapenko glider at google.com
Tue Feb 25 03:54:25 PST 2014


Author: glider
Date: Tue Feb 25 05:54:25 2014
New Revision: 202144

URL: http://llvm.org/viewvc/llvm-project?rev=202144&view=rev
Log:
[ASan] Don't set rpath when building ASan runtime libraries.
This should fix the issues with `make check-asan` on OS X.

Modified:
    compiler-rt/trunk/lib/asan/CMakeLists.txt

Modified: compiler-rt/trunk/lib/asan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/CMakeLists.txt?rev=202144&r1=202143&r2=202144&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/asan/CMakeLists.txt Tue Feb 25 05:54:25 2014
@@ -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





More information about the llvm-commits mailing list