diff options
author | Francis Ricci <francisjricci@gmail.com> | 2017-03-28 21:56:44 +0000 |
---|---|---|
committer | Francis Ricci <francisjricci@gmail.com> | 2017-03-28 21:56:44 +0000 |
commit | ab8529226152d7622562d6b63664eae96c918960 (patch) | |
tree | 1e3ba33a1c5a102d131f9eb59bdf71fd801ae5b5 /compiler-rt/lib/lsan/lsan_common.h | |
parent | b933c3f55422f2657d2017b002e827b82b28a2da (diff) | |
download | bcm5719-llvm-ab8529226152d7622562d6b63664eae96c918960.tar.gz bcm5719-llvm-ab8529226152d7622562d6b63664eae96c918960.zip |
Enable i386 builds for darwin lsan
Summary:
Now that __thread is no longer used for lsan on darwin, i386 builds
can be enabled.
Reviewers: kcc, kubamracek
Subscribers: danalbert, srhines, mgorny, llvm-commits
Differential Revision: https://reviews.llvm.org/D29995
llvm-svn: 298946
Diffstat (limited to 'compiler-rt/lib/lsan/lsan_common.h')
-rw-r--r-- | compiler-rt/lib/lsan/lsan_common.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler-rt/lib/lsan/lsan_common.h b/compiler-rt/lib/lsan/lsan_common.h index c457d1b84a8..cb8126aa575 100644 --- a/compiler-rt/lib/lsan/lsan_common.h +++ b/compiler-rt/lib/lsan/lsan_common.h @@ -30,12 +30,14 @@ // To enable LeakSanitizer on new architecture, one need to implement // internal_clone function as well as (probably) adjust TLS machinery for // new architecture inside sanitizer library. -#if (SANITIZER_LINUX && !SANITIZER_ANDROID || CAN_SANITIZE_LEAKS_MAC) \ - && (SANITIZER_WORDSIZE == 64) && (defined(__x86_64__) \ - || defined(__mips64) || defined(__aarch64__)) +#if (SANITIZER_LINUX && !SANITIZER_ANDROID) && (SANITIZER_WORDSIZE == 64) && \ + (defined(__x86_64__) || defined(__mips64) || defined(__aarch64__)) #define CAN_SANITIZE_LEAKS 1 #elif SANITIZER_LINUX && !SANITIZER_ANDROID && defined(__i386__) #define CAN_SANITIZE_LEAKS 1 +#elif CAN_SANITIZE_LEAKS_MAC && (defined(__x86_64__) || defined(__mips64) || \ + defined(__aarch64__) || defined(__i386__)) +#define CAN_SANITIZE_LEAKS 1 #else #define CAN_SANITIZE_LEAKS 0 #endif |