[libcxx] r312498 - Add MINGW_LIBRARIES to the linker flags
Martin Storsjo via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 4 12:46:53 PDT 2017
Author: mstorsjo
Date: Mon Sep 4 12:46:53 2017
New Revision: 312498
URL: http://llvm.org/viewvc/llvm-project?rev=312498&view=rev
Log:
Add MINGW_LIBRARIES to the linker flags
This is essential when building with -nodefaultlibs.
This is similar to what already is done in libcxxabi in SVN r302760.
Differential revision: https://reviews.llvm.org/D37207
Modified:
libcxx/trunk/lib/CMakeLists.txt
Modified: libcxx/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/lib/CMakeLists.txt?rev=312498&r1=312497&r2=312498&view=diff
==============================================================================
--- libcxx/trunk/lib/CMakeLists.txt (original)
+++ libcxx/trunk/lib/CMakeLists.txt Mon Sep 4 12:46:53 2017
@@ -91,6 +91,7 @@ else()
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)
More information about the cfe-commits
mailing list