[sanitizers] Don't use Windows Trace Logging on MinGW
authorMartin Storsjo <martin@martin.st>
Fri, 1 Mar 2019 22:30:14 +0000 (22:30 +0000)
committerMartin Storsjo <martin@martin.st>
Fri, 1 Mar 2019 22:30:14 +0000 (22:30 +0000)
commit05394af3ffd91ceceabb5e28e47ab0976471b8df
tree33509d639d3cd953030838dba0571edae3f5705a
parentd8632c92a718acf4def33035c9260384c1726824
[sanitizers] Don't use Windows Trace Logging on MinGW

mingw-w64 currently is lacking the headers for this feature.

Make the include lowercase at the same time. We consistently
use lowercase for windows header includes, as windows itself is
case insensitive, the SDK headers (in general, not necessarily
considering this particular header) aren't consistent among themselves
about what the proper canonical capitalization for headers are,
and MinGW uses all lowercase names for the headers (as it is often
used on case sensitive filesystems).

In case mingw-w64 later gets this header, we can revert this
(but keep the include lowercased).

Differential Revision: https://reviews.llvm.org/D58765

llvm-svn: 355236
compiler-rt/lib/sanitizer_common/sanitizer_common.h
compiler-rt/lib/sanitizer_common/sanitizer_win.cc