[ASan] [MinGW] Only try to export MSVC specific C++ symbols if building with a MSVC like compiler

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

llvm-svn: 343073
This commit is contained in:
Martin Storsjo 2018-09-26 06:52:55 +00:00
parent 47db633239
commit fed729f28e
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@
// anyway by passing extra -export flags to the linker, which is exactly that // anyway by passing extra -export flags to the linker, which is exactly that
// dllexport would normally do. We need to export them in order to make the // dllexport would normally do. We need to export them in order to make the
// VS2015 dynamic CRT (MD) work. // VS2015 dynamic CRT (MD) work.
#if SANITIZER_WINDOWS #if SANITIZER_WINDOWS && defined(_MSC_VER)
#define CXX_OPERATOR_ATTRIBUTE #define CXX_OPERATOR_ATTRIBUTE
#define COMMENT_EXPORT(sym) __pragma(comment(linker, "/export:" sym)) #define COMMENT_EXPORT(sym) __pragma(comment(linker, "/export:" sym))
#ifdef _WIN64 #ifdef _WIN64