Commit 97f0f2ee authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

is_lsan=true requires is_asan=true -- add a gn-time assert to check for that.

Bug: none
Change-Id: Iacc611282edb2d53bf213b75c07e4b724b2ac0ac
Reviewed-on: https://chromium-review.googlesource.com/989246Reviewed-by: default avatarChris Mumford <cmumford@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547436}
parent 9dd1930a
...@@ -201,6 +201,8 @@ assert(!is_debug || !(is_msan || is_ubsan || is_ubsan_null || is_ubsan_vptr), ...@@ -201,6 +201,8 @@ assert(!is_debug || !(is_msan || is_ubsan || is_ubsan_null || is_ubsan_vptr),
assert(!is_msan || (is_linux && current_cpu == "x64"), assert(!is_msan || (is_linux && current_cpu == "x64"),
"MSan currently only works on 64-bit Linux and ChromeOS builds.") "MSan currently only works on 64-bit Linux and ChromeOS builds.")
assert(!is_lsan || is_asan, "is_lsan = true requires is_asan = true also.")
# ASAN build on Windows is not working in debug mode. Intercepting memory # ASAN build on Windows is not working in debug mode. Intercepting memory
# allocation functions is hard on Windows and not yet implemented in LLVM. # allocation functions is hard on Windows and not yet implemented in LLVM.
assert(!is_win || !is_debug || !is_asan, assert(!is_win || !is_debug || !is_asan,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment