diff options
author | Martin Storsjo <martin@martin.st> | 2018-09-26 06:52:55 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2018-09-26 06:52:55 +0000 |
commit | 0813450aee6edb6509abc96c67f10817153618dd (patch) | |
tree | 7e465d5e07d1ffcee3b00bb870504049e8c7b139 | |
parent | bf02e138075a13f2684e70a418ee305cf1170933 (diff) | |
download | compiler-rt-0813450aee6edb6509abc96c67f10817153618dd.tar.gz |
[ASan] [MinGW] Only try to export MSVC specific C++ symbols if building with a MSVC like compiler
Differential Revision: https://reviews.llvm.org/D51878
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@343073 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/asan/asan_new_delete.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/asan_new_delete.cc b/lib/asan/asan_new_delete.cc index 30efd61a9..e6053c1fe 100644 --- a/lib/asan/asan_new_delete.cc +++ b/lib/asan/asan_new_delete.cc @@ -26,7 +26,7 @@ // 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 // VS2015 dynamic CRT (MD) work. -#if SANITIZER_WINDOWS +#if SANITIZER_WINDOWS && defined(_MSC_VER) #define CXX_OPERATOR_ATTRIBUTE #define COMMENT_EXPORT(sym) __pragma(comment(linker, "/export:" sym)) #ifdef _WIN64 |