[PATCH] D34606: [libcxx] Link MinGW libs for shared build
Mateusz MikuĊa via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 25 07:49:32 PDT 2017
mati865 created this revision.
Herald added a subscriber: mgorny.
Another small step for libc++ with MinGW-w64.
Repository:
rL LLVM
https://reviews.llvm.org/D34606
Files:
lib/CMakeLists.txt
Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -126,6 +126,26 @@
# Required for standards-complaint wide character formatting functions
# (e.g. `printfw`/`scanfw`)
add_library_flags(iso_stdio_wide_specifiers)
+elseif(MINGW)
+ if (LIBCXX_USE_COMPILER_RT)
+ set(MINGW_RUNTIME ${LIBCXX_BUILTINS_LIBRARY})
+ else ()
+ set(MINGW_RUNTIME gcc_s gcc)
+ endif()
+ add_library_flags(mingw32)
+ add_library_flags(${MINGW_RUNTIME})
+ add_library_flags(moldname)
+ add_library_flags(mingwex)
+ add_library_flags(msvcrt)
+ add_library_flags(advapi32)
+ add_library_flags(shell32)
+ add_library_flags(user32)
+ add_library_flags(kernel32)
+ add_library_flags(mingw32)
+ add_library_flags(${MINGW_RUNTIME})
+ add_library_flags(moldname)
+ add_library_flags(mingwex)
+ add_library_flags(msvcrt)
endif()
if (LIBCXX_OSX_REEXPORT_SYSTEM_ABI_LIBRARY)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34606.103870.patch
Type: text/x-patch
Size: 962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170625/d16853ee/attachment.bin>
More information about the cfe-commits
mailing list