[PATCH] D74599: llvm: Set WINVER to 0x600 (Vista) for MinGW
Cristian Adam via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 14 03:09:44 PST 2020
cristian.adam created this revision.
cristian.adam added a reviewer: gbreynoo.
Herald added subscribers: llvm-commits, mstorsjo, mgorny.
Herald added a project: LLVM.
llvm-ar is using CompareStringOrdinal which is available only starting with Windows Vista.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D74599
Files:
llvm/cmake/config-ix.cmake
Index: llvm/cmake/config-ix.cmake
===================================================================
--- llvm/cmake/config-ix.cmake
+++ llvm/cmake/config-ix.cmake
@@ -663,3 +663,8 @@
else()
set (LLVM_HAVE_OPT_VIEWER_MODULES 0)
endif()
+
+# Windows Vista or later
+if (MINGW)
+ add_definitions(-DWINVER=0x600)
+endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74599.244603.patch
Type: text/x-patch
Size: 325 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200214/852bb95b/attachment.bin>
More information about the llvm-commits
mailing list