[PATCH] D45242: [compiler-rt] Support statically linked libc++abi and libunwind
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 4 09:30:32 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT329205: [CMake] Support statically linked libc++abi and libunwind (authored by phosek, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D45242?vs=140898&id=140978#toc
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D45242
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -152,11 +152,15 @@
if (SANITIZER_CXX_ABI_LIBNAME STREQUAL "libcxxabi")
if (SANITIZER_CXX_ABI_INTREE)
- if (TARGET unwind_shared OR HAVE_LIBUNWIND)
+ if (NOT LIBCXXABI_ENABLE_STATIC_UNWINDER AND (TARGET unwind_shared OR HAVE_LIBUNWIND))
list(APPEND SANITIZER_CXX_ABI_LIBRARY unwind_shared)
+ elseif (LIBCXXABI_ENABLE_STATIC_UNWINDER AND (TARGET unwind_static OR HAVE_LIBUNWIND))
+ list(APPEND SANITIZER_CXX_ABI_LIBRARY unwind_static)
endif()
- if (TARGET cxxabi_shared OR HAVE_LIBCXXABI)
+ if (NOT LIBCXX_ENABLE_STATIC_ABI_LIBRARY AND (TARGET cxxabi_shared OR HAVE_LIBCXXABI))
list(APPEND SANITIZER_CXX_ABI_LIBRARY cxxabi_shared)
+ elseif (LIBCXX_ENABLE_STATIC_ABI_LIBRARY AND (TARGET cxxabi_static OR HAVE_LIBCXXABI))
+ list(APPEND SANITIZER_CXX_ABI_LIBRARY cxxabi_static)
endif()
else()
list(APPEND SANITIZER_CXX_ABI_LIBRARY "c++abi")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45242.140978.patch
Type: text/x-patch
Size: 1033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180404/6087767a/attachment.bin>
More information about the llvm-commits
mailing list