From 4f0f933579dd9be6e99942175ecfe2b16ab98f7f Mon Sep 17 00:00:00 2001 From: Kevin Lubick Date: Fri, 12 Jan 2018 14:31:48 -0500 Subject: Add Android ASAN bot It should work on 32 and 64 bit android running M or newer. Bug: skia: Change-Id: I7e6d4000f4fee8f2704b84b7174174dd0e68d21c Reviewed-on: https://skia-review.googlesource.com/93700 Reviewed-by: Mike Klein Reviewed-by: Eric Boren Commit-Queue: Kevin Lubick --- gn/BUILD.gn | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gn/BUILD.gn') diff --git a/gn/BUILD.gn b/gn/BUILD.gn index fdf14709fe..fcffd5d064 100644 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn @@ -227,6 +227,15 @@ config("default") { if (sanitize == "ASAN") { sanitizers += ",address" } + if (is_android) { + # Android only easily supports address for now + # UBSAN runs into linking errors + sanitizers = "address" + + # recommended by + # https://github.com/google/sanitizers/wiki/AddressSanitizerOnAndroid + cflags += [ "-fno-omit-frame-pointer" ] + } } else if (sanitize == "TSAN") { sanitizers = "thread" } else if (sanitize == "MSAN") { -- cgit v1.2.3