[PATCH] D39949: [CMake][libcxxabi] Support merging archives when statically linking unwinder
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 14:49:58 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL318563: [CMake][libcxxabi] Support merging objects when statically linking unwinder (authored by phosek).
Changed prior to commit:
https://reviews.llvm.org/D39949?vs=123423&id=123428#toc
Repository:
rL LLVM
https://reviews.llvm.org/D39949
Files:
libcxxabi/trunk/src/CMakeLists.txt
Index: libcxxabi/trunk/src/CMakeLists.txt
===================================================================
--- libcxxabi/trunk/src/CMakeLists.txt
+++ libcxxabi/trunk/src/CMakeLists.txt
@@ -151,7 +151,13 @@
# Build the static library.
if (LIBCXXABI_ENABLE_STATIC)
- add_library(cxxabi_static STATIC $<TARGET_OBJECTS:cxxabi_objects>)
+ set(cxxabi_static_sources $<TARGET_OBJECTS:cxxabi_objects>)
+ if (LIBCXXABI_USE_LLVM_UNWINDER AND LIBCXXABI_ENABLE_STATIC_UNWINDER)
+ if (TARGET unwind_static OR HAVE_LIBUNWIND)
+ list(APPEND cxxabi_static_sources $<TARGET_OBJECTS:unwind_objects>)
+ endif()
+ endif()
+ add_library(cxxabi_static STATIC ${cxxabi_static_sources})
target_link_libraries(cxxabi_static ${LIBCXXABI_LIBRARIES})
set_target_properties(cxxabi_static
PROPERTIES
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39949.123428.patch
Type: text/x-patch
Size: 824 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171117/ecee038a/attachment.bin>
More information about the llvm-commits
mailing list