[compiler-rt] r343073 - [ASan] [MinGW] Only try to export MSVC specific C++ symbols if building with a MSVC like compiler
Martin Storsjo via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 25 23:52:56 PDT 2018
Author: mstorsjo
Date: Tue Sep 25 23:52:55 2018
New Revision: 343073
URL: http://llvm.org/viewvc/llvm-project?rev=343073&view=rev
Log:
[ASan] [MinGW] Only try to export MSVC specific C++ symbols if building with a MSVC like compiler
Differential Revision: https://reviews.llvm.org/D51878
Modified:
compiler-rt/trunk/lib/asan/asan_new_delete.cc
Modified: compiler-rt/trunk/lib/asan/asan_new_delete.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_new_delete.cc?rev=343073&r1=343072&r2=343073&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_new_delete.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_new_delete.cc Tue Sep 25 23:52:55 2018
@@ -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
More information about the llvm-commits
mailing list