aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/BUILD.gn
diff options
context:
space:
mode:
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") {