[libcxx-commits] [PATCH] D57646: [libcxx] Specify unwind lib before other system libraries.
Yuanfang Chen via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Feb 3 01:50:18 PST 2019
tabloid.adroit updated this revision to Diff 184938.
tabloid.adroit added a comment.
- update
Repository:
rCXX libc++
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57646/new/
https://reviews.llvm.org/D57646
Files:
lib/CMakeLists.txt
Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -79,6 +79,17 @@
endif()
endif()
+# Add the unwinder library.
+if (LIBCXXABI_USE_LLVM_UNWINDER)
+ if (NOT LIBCXXABI_ENABLE_STATIC_UNWINDER AND (TARGET unwind_shared OR HAVE_LIBUNWIND))
+ add_interface_library(unwind_shared)
+ elseif (LIBCXXABI_ENABLE_STATIC_UNWINDER AND (TARGET unwind_static OR HAVE_LIBUNWIND))
+ add_interface_library(unwind_static)
+ else()
+ add_interface_library(unwind)
+ endif()
+endif()
+
# Generate private library list.
add_library_flags_if(LIBCXX_HAS_PTHREAD_LIB pthread)
add_library_flags_if(LIBCXX_HAS_C_LIB c)
@@ -93,17 +104,6 @@
add_library_flags_if(LIBCXX_HAVE_CXX_ATOMICS_WITH_LIB atomic)
add_library_flags_if(MINGW "${MINGW_LIBRARIES}")
-# Add the unwinder library.
-if (LIBCXXABI_USE_LLVM_UNWINDER)
- if (NOT LIBCXXABI_ENABLE_STATIC_UNWINDER AND (TARGET unwind_shared OR HAVE_LIBUNWIND))
- add_interface_library(unwind_shared)
- elseif (LIBCXXABI_ENABLE_STATIC_UNWINDER AND (TARGET unwind_static OR HAVE_LIBUNWIND))
- add_interface_library(unwind_static)
- else()
- add_interface_library(unwind)
- endif()
-endif()
-
# Setup flags.
if (NOT WIN32)
add_flags_if_supported(-fPIC)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57646.184938.patch
Type: text/x-patch
Size: 1299 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190203/eec9ca97/attachment-0001.bin>
More information about the libcxx-commits
mailing list