Index: build/common.gypi |
diff --git a/build/common.gypi b/build/common.gypi |
index b916700326cb4681eca8b2a38073477002cb5d28..db2739cbd36cab64fcf150744b71392dad12f93d 100644 |
--- a/build/common.gypi |
+++ b/build/common.gypi |
@@ -4934,6 +4934,15 @@ |
}], |
], |
}], |
+ ['asan==1', { |
+ 'cflags': [ |
+ # Android build relies on -Wl,--gc-sections removing |
+ # unreachable code. ASan instrumentation for globals inhibits |
+ # this and results in a library with unresolvable relocations. |
+ # TODO(eugenis): find a way to reenable this. |
+ '-mllvm -asan-globals=0', |
+ ], |
+ }], |
['target_arch == "arm" and order_profiling==0', { |
'ldflags': [ |
# Enable identical code folding to reduce size. |