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 <mtklein@chromium.org>
Reviewed-by: Eric Boren <borenet@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index fdf1470..fcffd5d 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -227,6 +227,15 @@
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") {