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/CrashRecoveryContext.cpp | |
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/CrashRecoveryContext.cpp')
-rw-r--r-- | llvm/lib/Support/CrashRecoveryContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp index 35683560983..ec7d7d641dc 100644 --- a/llvm/lib/Support/CrashRecoveryContext.cpp +++ b/llvm/lib/Support/CrashRecoveryContext.cpp @@ -254,7 +254,7 @@ bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) { // XP, so if support for older versions of Windows is required, // it will have to be added. -#include "Windows/WindowsSupport.h" +#include "llvm/Support/Windows/WindowsSupport.h" static LONG CALLBACK ExceptionHandler(PEXCEPTION_POINTERS ExceptionInfo) { |