forked from OSchip/llvm-project
[sanitizers] Don't use Windows Trace Logging with Clang in MSVC mode either
The TraceLoggingProvider.h header does work with clang-cl in general these days with Win SDK 10.0.17763.0, but when compiled in 32 bit x86 mode, with the -Z7 flag, compilation fails with the following error: fatal error: error in backend: assembler label '' can not be undefined With older Win SDKs, there are other build failures (regardless of architecture or the -Z7 flag). Differential Revision: https://reviews.llvm.org/D58958 llvm-svn: 355397
This commit is contained in:
parent
855478328b
commit
826624f00a
|
@ -804,7 +804,7 @@ enum AndroidApiLevel {
|
|||
|
||||
void WriteToSyslog(const char *buffer);
|
||||
|
||||
#if defined(SANITIZER_WINDOWS) && defined(_MSC_VER)
|
||||
#if defined(SANITIZER_WINDOWS) && defined(_MSC_VER) && !defined(__clang__)
|
||||
#define SANITIZER_WIN_TRACE 1
|
||||
#else
|
||||
#define SANITIZER_WIN_TRACE 0
|
||||
|
|
Loading…
Reference in New Issue