diff options
author | Hans Wennborg <hans@chromium.org> | 2020-02-28 09:59:24 +0100 |
---|---|---|
committer | Hans Wennborg <hans@chromium.org> | 2020-02-28 11:26:34 +0100 |
commit | daae05af2a5d1170de6940569128dcf071db32ef (patch) | |
tree | 43ed035ddef908151562e2a5902e759a97da17a4 /llvm/lib/Support/Windows/Program.inc | |
parent | e705da06e22b12ee5d75076a2a1ae7b479a566e1 (diff) | |
download | bcm5719-llvm-daae05af2a5d1170de6940569128dcf071db32ef.tar.gz bcm5719-llvm-daae05af2a5d1170de6940569128dcf071db32ef.zip |
llvm-ar: Fix MinGW compilation
llvm-ar is using CompareStringOrdinal which is available
only starting with Windows Vista (WINVER 0x600).
Fix this by hoising WindowsSupport.h, which sets _WIN32_WINNT
to 0x0601, up to llvm/include/llvm/Support and use it in llvm-ar.
Patch by Cristian Adam!
Differential revision: https://reviews.llvm.org/D74599
(cherry picked from commit 01f9abbb50b11dd26b9ccb7cb565cc955d2b9c74)
This is for https://bugs.llvm.org/show_bug.cgi?id=44907
Diffstat (limited to 'llvm/lib/Support/Windows/Program.inc')
-rw-r--r-- | llvm/lib/Support/Windows/Program.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/Program.inc b/llvm/lib/Support/Windows/Program.inc index a1482bf17c6..c4285d5d656 100644 --- a/llvm/lib/Support/Windows/Program.inc +++ b/llvm/lib/Support/Windows/Program.inc @@ -10,7 +10,7 @@ // //===----------------------------------------------------------------------===// -#include "WindowsSupport.h" +#include "llvm/Support/Windows/WindowsSupport.h" #include "llvm/ADT/StringExtras.h" #include "llvm/Support/ConvertUTF.h" #include "llvm/Support/Errc.h" |