aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Kevin Lubick <kjlubick@google.com>2018-01-12 14:31:48 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-12 19:57:33 +0000
commit4f0f933579dd9be6e99942175ecfe2b16ab98f7f (patch)
treec241a52cff46e093b6b84a1189f0222631cbafea /gn/BUILD.gn
parentd070f43961e957208c75515c882dd32450c868c0 (diff)
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>
Diffstat (limited to 'gn/BUILD.gn')
-rw-r--r--gn/BUILD.gn9
1 files changed, 9 insertions, 0 deletions
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") {