[PATCH] D37207: [libc++] Add MINGW_LIBRARIES to the linker flags

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 28 03:26:58 PDT 2017


mstorsjo created this revision.
Herald added a subscriber: mgorny.

This is essential when building with -nodefaultlibs.

This is similar to what already is done in libcxxabi in SVN r302760.


https://reviews.llvm.org/D37207

Files:
  lib/CMakeLists.txt


Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -91,6 +91,7 @@
   add_library_flags_if(LIBCXX_HAS_GCC_S_LIB gcc_s)
 endif()
 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)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37207.112873.patch
Type: text/x-patch
Size: 397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170828/c2c74aa4/attachment.bin>


More information about the cfe-commits mailing list