summaryrefslogtreecommitdiffstats
path: root/libcxx/lib
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2017-09-04 19:46:53 +0000
committerMartin Storsjo <martin@martin.st>2017-09-04 19:46:53 +0000
commit783d433f169c5c5a0136c26d951796657f67d971 (patch)
tree2ee2b89e69c131d724b9b2e2c8f470bb2e74ca9c /libcxx/lib
parentd413303b8337523a94437f75c66256791c00e059 (diff)
downloadbcm5719-llvm-783d433f169c5c5a0136c26d951796657f67d971.tar.gz
bcm5719-llvm-783d433f169c5c5a0136c26d951796657f67d971.zip
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 llvm-svn: 312498
Diffstat (limited to 'libcxx/lib')
-rw-r--r--libcxx/lib/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/lib/CMakeLists.txt b/libcxx/lib/CMakeLists.txt
index 578651423f3..24c3067679f 100644
--- a/libcxx/lib/CMakeLists.txt
+++ b/libcxx/lib/CMakeLists.txt
@@ -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)
OpenPOWER on IntegriCloud