diff options
-rw-r--r-- | lib/asan/CMakeLists.txt | 7 |
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 |