[PATCH] D56713: gn build: Add check-hwasan target.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 15 02:03:35 PST 2019


pcc created this revision.
pcc added reviewers: thakis, phosek, eugenis.
Herald added subscribers: jfb, cryptoad, kristof.beyls, javed.absar, kubamracek, srhines.

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


Repository:
  rL LLVM

https://reviews.llvm.org/D56713

Files:
  llvm/utils/gn/secondary/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/include/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/lib/cfi/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/test/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/test/hwasan/BUILD.gn
  llvm/utils/gn/secondary/compiler-rt/test/test.gni

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56713.181748.patch
Type: text/x-patch
Size: 9145 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190115/5ab25e9d/attachment.bin>


More information about the llvm-commits mailing list