Index: build/config/sanitizers/sanitizers.gni |
diff --git a/build/config/sanitizers/sanitizers.gni b/build/config/sanitizers/sanitizers.gni |
index 69a94db2b062159dfdbe085e50f62a91f6edcf0b..ddf28f127ff17f139ce3ccf8c2707465c41da079 100644 |
--- a/build/config/sanitizers/sanitizers.gni |
+++ b/build/config/sanitizers/sanitizers.gni |
@@ -85,3 +85,6 @@ assert(!using_sanitizer || is_clang, |
assert( |
!is_debug || !(is_msan || is_lsan || is_tsan || is_ubsan || is_ubsan_vptr), |
"Sanitizers should generally be used in release (set is_debug=false).") |
+ |
+assert(!(is_android && is_asan && !is_component_build), |
+ "is_asan on Android requires is_component_build to be set") |