hanchenye-llvm-project/compiler-rt/test/scudo
Kostya Kortchinsky 8a0b40a8b3 [scudo] Android build support
Summary:
Mark Android as supported in the cmake configuration for Scudo.

Scudo is not added yet in the Android build bots, but code builds and tests
pass locally. It is for a later CL. I also checked that Scudo builds as part
of the Android toolchain.

A few modifications had to be made:
- Android defaults to `abort_on_error=1`, which doesn't work well with the
  current tests. So change the default way to pass `SCUDO_OPTIONS` to the tests
  to account for this, setting it to 0 by default;
- Disable the `valloc.cpp` & `random_shuffle.cpp` tests on Android;
- There is a bit of gymnatic to be done with the `SCUDO_TEST_TARGET_ARCH`
  string, due to android using the `-android` suffix, and `i686` instead of
  `i386`;
- Android doesn't need `-lrt`.

Reviewers: alekseyshl, eugenis

Reviewed By: alekseyshl

Subscribers: srhines, mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D37907

llvm-svn: 313538
2017-09-18 15:40:53 +00:00
..
CMakeLists.txt [scudo] Android build support 2017-09-18 15:40:53 +00:00
alignment.cpp [scudo] 32-bit quarantine sizes adjustments and bug fixes 2017-02-03 20:49:42 +00:00
double-free.cpp [scudo] 32-bit quarantine sizes adjustments and bug fixes 2017-02-03 20:49:42 +00:00
interface.cpp [scudo] Fix buildbot test error on ARM 2017-02-03 21:59:00 +00:00
lit.cfg [scudo] Android build support 2017-09-18 15:40:53 +00:00
lit.site.cfg.in [scudo] Android build support 2017-09-18 15:40:53 +00:00
malloc.cpp [scudo] 32-bit quarantine sizes adjustments and bug fixes 2017-02-03 20:49:42 +00:00
memalign.cpp [scudo] Android build support 2017-09-18 15:40:53 +00:00
mismatch.cpp [scudo] Android build support 2017-09-18 15:40:53 +00:00
options.cpp [scudo] Android build support 2017-09-18 15:40:53 +00:00
overflow.cpp [scudo] Android build support 2017-09-18 15:40:53 +00:00
preinit.cpp [scudo] 32-bit quarantine sizes adjustments and bug fixes 2017-02-03 20:49:42 +00:00
quarantine.cpp [scudo] Android build support 2017-09-18 15:40:53 +00:00
random_shuffle.cpp [scudo] Android build support 2017-09-18 15:40:53 +00:00
realloc.cpp [scudo] Application & platform compatibility changes 2017-08-16 16:40:48 +00:00
secondary.cpp [scudo] 32-bit quarantine sizes adjustments and bug fixes 2017-02-03 20:49:42 +00:00
sized-delete.cpp [scudo] Android build support 2017-09-18 15:40:53 +00:00
sizes.cpp [scudo] Android build support 2017-09-18 15:40:53 +00:00
threads.cpp [scudo] Android build support 2017-09-18 15:40:53 +00:00
tsd_destruction.cpp [scudo] Fix improper TSD init after TLS destructors are called 2017-09-11 19:59:40 +00:00
valloc.cpp [scudo] Android build support 2017-09-18 15:40:53 +00:00