Index: build/config/sanitizers/sanitizers.gni |
diff --git a/build/config/sanitizers/sanitizers.gni b/build/config/sanitizers/sanitizers.gni |
index a0e994064e165eac3ba9e070d294636416e9893d..f1a1bf7a08fbdc9ade0c220e689229625fc95d49 100644 |
--- a/build/config/sanitizers/sanitizers.gni |
+++ b/build/config/sanitizers/sanitizers.gni |
@@ -184,3 +184,8 @@ assert(!is_debug || !(is_msan || is_ubsan || is_ubsan_null || is_ubsan_vptr), |
assert(!is_msan || (is_linux && current_cpu == "x64"), |
"MSan currently only works on 64-bit Linux and ChromeOS builds.") |
+ |
+# ASAN build on Windows is not working in debug mode. Intercepting memory |
+# allocation functions is hard on Windows and not yet implemented in LLVM. |
+assert(!is_win || !is_debug || !is_asan, |
+ "ASan on Windows doesn't work in debug (set is_debug=false).") |