Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Unified Diff: build/config/sanitizers/sanitizers.gni

Issue 2188473002: [Mac/GN] Configure ASan for bundled targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/sanitizers/BUILD.gn ('k') | build/toolchain/mac/linker_driver.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/sanitizers/sanitizers.gni
diff --git a/build/config/sanitizers/sanitizers.gni b/build/config/sanitizers/sanitizers.gni
index 16117223110eed8bbd8c2669aeae1e05267de8ad..4a2fcaf3ba82bb7415d0f3e5e6462da3c1bdf963 100644
--- a/build/config/sanitizers/sanitizers.gni
+++ b/build/config/sanitizers/sanitizers.gni
@@ -125,6 +125,10 @@ if (use_afl && sanitizer_coverage_flags == "") {
using_sanitizer = is_asan || is_lsan || is_tsan || is_msan || is_ubsan ||
is_ubsan_null || is_ubsan_vptr || is_ubsan_security
+if (is_mac) {
+ asan_runtime_basename = "libclang_rt.asan_osx_dynamic.dylib"
+}
+
assert(!using_sanitizer || is_clang,
"Sanitizers (is_*san) require setting is_clang = true in 'gn args'")
« no previous file with comments | « build/config/sanitizers/BUILD.gn ('k') | build/toolchain/mac/linker_driver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698