[PATCH] D18014: Allows to build libc++ with -DLLVM_USE_SANITIZER="Address; Undefined" on OSX
Mehdi AMINI via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 9 14:59:17 PST 2016
joker.eph created this revision.
joker.eph added a reviewer: beanz.
joker.eph added a subscriber: cfe-commits.
joker.eph set the repository for this revision to rL LLVM.
It seems some cases were missing to the configuration.
Repository:
rL LLVM
http://reviews.llvm.org/D18014
Files:
lib/CMakeLists.txt
Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -48,7 +48,9 @@
add_library_flags_if(LIBCXX_ENABLE_STATIC_ABI_LIBRARY "-Wl,-Bdynamic" "-Wl,--no-whole-archive")
if (APPLE AND LLVM_USE_SANITIZER)
- if ("${LLVM_USE_SANITIZER}" STREQUAL "Address")
+ if ("${LLVM_USE_SANITIZER}" STREQUAL "Address" OR
+ "${LLVM_USE_SANITIZER}" STREQUAL "Address;Undefined" OR
+ "${LLVM_USE_SANITIZER}" STREQUAL "Undefined;Address")
set(LIBFILE "libclang_rt.asan_osx_dynamic.dylib")
elseif("${LLVM_USE_SANITIZER}" STREQUAL "Undefined")
set(LIBFILE "libclang_rt.ubsan_osx_dynamic.dylib")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18014.50202.patch
Type: text/x-patch
Size: 687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160309/bba2574a/attachment.bin>
More information about the cfe-commits
mailing list