Fix checks for Android.
authorDan Albert <danalbert@google.com>
Mon, 20 Oct 2014 15:35:01 +0000 (15:35 +0000)
committerDan Albert <danalbert@google.com>
Mon, 20 Oct 2014 15:35:01 +0000 (15:35 +0000)
commitc5d4bc7581486a204f34f326d259de3b049f7185
tree040df7dcf6aed6689dcb7ae833a2c4099c3fc754
parent8835a32078c85f15f77bcd2c2221d4745e5b905c
Fix checks for Android.

__ANDROID__ is a define that comes from the toolchain when building
for Android targets. ANDROID has a different meaning. ANDROID is
defined for _every_ Android build, including those done for host
modules. For host modules, we want to build the regular Linux
sanitizers and builtins, not the one for Android devices. This hasn't
been a problem until now because we only just started building the
sanitizers for the host.

llvm-svn: 220203
compiler-rt/lib/asan/tests/asan_test.cc
compiler-rt/lib/builtins/clear_cache.c
compiler-rt/lib/sanitizer_common/sanitizer_platform.h
compiler-rt/lib/sanitizer_common/tests/sanitizer_test_utils.h