[PATCH] D118162: [tblgen] Disable lsan weak hook when building with msvc
pierre gousseau via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 28 02:03:28 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG14e8bedc9807: [tblgen] Disable lsan weak hook when building with msvc (authored by pgousseau).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118162/new/
https://reviews.llvm.org/D118162
Files:
llvm/utils/TableGen/TableGen.cpp
Index: llvm/utils/TableGen/TableGen.cpp
===================================================================
--- llvm/utils/TableGen/TableGen.cpp
+++ llvm/utils/TableGen/TableGen.cpp
@@ -289,7 +289,8 @@
#define __has_feature(x) 0
#endif
-#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) || \
+#if __has_feature(address_sanitizer) || \
+ (defined(__SANITIZE_ADDRESS__) && defined(__GNUC__)) || \
__has_feature(leak_sanitizer)
#include <sanitizer/lsan_interface.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118162.403932.patch
Type: text/x-patch
Size: 562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220128/c0619eb2/attachment.bin>
More information about the llvm-commits
mailing list