[all-commits] [llvm/llvm-project] 01f9ab: llvm-ar: Fix MinGW compilation

Hans via All-commits all-commits at lists.llvm.org
Fri Feb 28 01:03:15 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 01f9abbb50b11dd26b9ccb7cb565cc955d2b9c74
      https://github.com/llvm/llvm-project/commit/01f9abbb50b11dd26b9ccb7cb565cc955d2b9c74
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2020-02-28 (Fri, 28 Feb 2020)

  Changed paths:
    A llvm/include/llvm/Support/Windows/WindowsSupport.h
    M llvm/lib/Support/CrashRecoveryContext.cpp
    M llvm/lib/Support/InitLLVM.cpp
    M llvm/lib/Support/RandomNumberGenerator.cpp
    M llvm/lib/Support/Windows/DynamicLibrary.inc
    M llvm/lib/Support/Windows/Host.inc
    M llvm/lib/Support/Windows/Memory.inc
    M llvm/lib/Support/Windows/Path.inc
    M llvm/lib/Support/Windows/Process.inc
    M llvm/lib/Support/Windows/Program.inc
    M llvm/lib/Support/Windows/Signals.inc
    M llvm/lib/Support/Windows/ThreadLocal.inc
    M llvm/lib/Support/Windows/Threading.inc
    R llvm/lib/Support/Windows/WindowsSupport.h
    M llvm/lib/Support/raw_ostream.cpp
    M llvm/tools/llvm-ar/llvm-ar.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list