1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/utils/gn/secondary
Peter Collingbourne e58561f877 gn build: Add check-hwasan target.
The Android sanitizer tests are currently some of the most difficult
to run correctly, requiring at least 3 build directories which have
to be configured in just the right way and built in the correct order
(see e.g. [1] and the functions that it calls).

This patch adds a check-hwasan target which greatly simplifies running
the hwasan tests for gn users, taking advantage of its support for
multiple toolchains. With this the tests can be run simply by setting
an NDK path and running "ninja check-hwasan" with a compatible Android
device connected. The Linux/x86_64 and Android/aarch64 targets are
tested in parallel.

[1] https://github.com/llvm/llvm-zorg/blob/master/zorg/buildbot/builders/sanitizers/buildbot_android.sh

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

llvm-svn: 351277
2019-01-16 00:15:25 +00:00
..
clang gn build: Add a resource_dir.gni file. 2019-01-15 21:44:59 +00:00
compiler-rt gn build: Add check-hwasan target. 2019-01-16 00:15:25 +00:00
lld gn build: Add a template for calling write_cmake_config.py 2019-01-10 23:10:04 +00:00
llvm gn build: Merge r351216, r351228. 2019-01-15 21:02:49 +00:00
BUILD.gn gn build: Add check-hwasan target. 2019-01-16 00:15:25 +00:00