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
This commit is contained in:
Martin Storsjo 2017-09-04 19:46:53 +00:00
parent d413303b83
commit 783d433f16
1 changed files with 1 additions and 0 deletions

View File

@ -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)