sanitizer_common: fix 32-bit build
authorDmitry Vyukov <dvyukov@google.com>
Mon, 12 Jul 2021 11:57:14 +0000 (13:57 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Mon, 12 Jul 2021 12:03:13 +0000 (14:03 +0200)
commit10158b52dcb3b9f1db44d9bd56993ad8cd68912a
tree3837edccac20e4f1e4344ddc4a9223b607983d03
parentf042e0a0f88391c611002e55afec5c37604b5819
sanitizer_common: fix 32-bit build

https://reviews.llvm.org/D105716 enabled thread safety annotations,
and that broke 32-bit build:
https://green.lab.llvm.org/green/job/lldb-cmake/33604/consoleFull#-77815080549ba4694-19c4-4d7e-bec5-911270d8a58c

1. Enable thread-safety analysis in unit tests
(this catches the breakage even in 64-bit mode).
2. Add NO_THREAD_SAFETY_ANALYSIS to sanitizer_allocator_primary32.h
to unbreak the build.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D105808
compiler-rt/CMakeLists.txt
compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary32.h