[all-commits] [llvm/llvm-project] ec6301: [compiler-rt] [profile] Fix building for MinGW aft...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Fri Nov 1 00:22:58 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ec630194fe64e9e304487040e808d0696a4f1895
      https://github.com/llvm/llvm-project/commit/ec630194fe64e9e304487040e808d0696a4f1895
  Author: Martin Storsjö <martin at martin.st>
  Date:   2019-11-01 (Fri, 01 Nov 2019)

  Changed paths:
    M compiler-rt/lib/profile/InstrProfilingPort.h

  Log Message:
  -----------
  [compiler-rt] [profile] Fix building for MinGW after d889d1efefe9f

This commit added use of a Windows API in InstrProfilingPort.h.
When _MSC_VER is defined (for MSVC), windows.h is already included
earlier in the same header (for atomics), but MinGW, the gcc
atomics builtins are used instead. Therefore explicitly include
windows.h here, where the API is used.




More information about the All-commits mailing list