[PATCH] D33384: [libcxx] [libcxxabi] fix building with libc++ win32 threads for mingw-w64

Martell Malone via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 28 14:31:33 PDT 2017


martell updated this revision to Diff 100569.
martell added a comment.

updated to `add_definitions`


Repository:
  rL LLVM

https://reviews.llvm.org/D33384

Files:
  libcxx/trunk/cmake/config-ix.cmake
  libcxxabi/trunk/cmake/config-ix.cmake


Index: libcxxabi/trunk/cmake/config-ix.cmake
===================================================================
--- libcxxabi/trunk/cmake/config-ix.cmake
+++ libcxxabi/trunk/cmake/config-ix.cmake
@@ -39,6 +39,7 @@
                         shell32 user32 kernel32 mingw32 ${MINGW_RUNTIME}
                         moldname mingwex msvcrt)
     list(APPEND CMAKE_REQUIRED_LIBRARIES ${MINGW_LIBRARIES})
+    add_definitions(-D_WIN32_WINNT=0x0600)
   endif()
   if (CMAKE_C_FLAGS MATCHES -fsanitize OR CMAKE_CXX_FLAGS MATCHES -fsanitize)
     set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -fno-sanitize=all")
Index: libcxx/trunk/cmake/config-ix.cmake
===================================================================
--- libcxx/trunk/cmake/config-ix.cmake
+++ libcxx/trunk/cmake/config-ix.cmake
@@ -50,6 +50,7 @@
                         shell32 user32 kernel32 mingw32 ${MINGW_RUNTIME}
                         moldname mingwex msvcrt)
     list(APPEND CMAKE_REQUIRED_LIBRARIES ${MINGW_LIBRARIES})
+    add_definitions(-D_WIN32_WINNT=0x0600)
   endif()
   if (CMAKE_C_FLAGS MATCHES -fsanitize OR CMAKE_CXX_FLAGS MATCHES -fsanitize)
     set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -fno-sanitize=all")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33384.100569.patch
Type: text/x-patch
Size: 1211 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170528/46f9b0da/attachment.bin>


More information about the llvm-commits mailing list