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)
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)
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits