[PATCH] D53631: Fix libcxx build with MinGW winpthreads
Peiyuan Song via Phabricator
reviews at reviews.llvm.org
Wed Oct 24 23:39:59 PDT 2018
SquallATF updated this revision to Diff 171039.
SquallATF added a comment.
- I created a patch to MinGW winpthreads, remove _LIBCPP_SAFE_STATIC winpthread block
Repository:
rCXX libc++
https://reviews.llvm.org/D53631
Files:
lib/CMakeLists.txt
Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -4,7 +4,13 @@
# FIXME: Don't use glob here
file(GLOB LIBCXX_SOURCES ../src/*.cpp)
if(WIN32)
- file(GLOB LIBCXX_WIN32_SOURCES ../src/support/win32/*.cpp)
+ set(LIBCXX_WIN32_SOURCES
+ ../src/support/win32/locale_win32.cpp
+ ../src/support/win32/support.cpp
+ )
+ if(LIBCXX_HAS_WIN32_THREAD_API)
+ list(APPEND LIBCXX_WIN32_SOURCES ../src/support/win32/thread_win32.cpp)
+ endif()
list(APPEND LIBCXX_SOURCES ${LIBCXX_WIN32_SOURCES})
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "SunOS")
file(GLOB LIBCXX_SOLARIS_SOURCES ../src/support/solaris/*.cpp)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53631.171039.patch
Type: text/x-patch
Size: 707 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20181025/3fbc8ca2/attachment.bin>
More information about the libcxx-commits
mailing list