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

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 25 23:54:30 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL343073: [ASan] [MinGW] Only try to export MSVC specific C++ symbols if building with a… (authored by mstorsjo, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D51878?vs=164718&id=167051#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D51878

Files:
  compiler-rt/trunk/lib/asan/asan_new_delete.cc


Index: compiler-rt/trunk/lib/asan/asan_new_delete.cc
===================================================================
--- compiler-rt/trunk/lib/asan/asan_new_delete.cc
+++ compiler-rt/trunk/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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51878.167051.patch
Type: text/x-patch
Size: 614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180926/f9dd1e26/attachment.bin>


More information about the llvm-commits mailing list