Index: build/config/sanitizers/BUILD.gn |
diff --git a/build/config/sanitizers/BUILD.gn b/build/config/sanitizers/BUILD.gn |
index 5ce799680dc982d0f4d71a54fd86582b1b5a2373..3f498d171417e1f748198653a5e20f78d584d374 100644 |
--- a/build/config/sanitizers/BUILD.gn |
+++ b/build/config/sanitizers/BUILD.gn |
@@ -70,7 +70,7 @@ group("deps_no_options") { |
} |
} |
-if (is_mac) { |
+if (is_mac && using_sanitizer) { |
copy("copy_asan_runtime") { |
sources = [ |
"//third_party/llvm-build/Release+Asserts/lib/clang/$clang_version/lib/darwin/libclang_rt.asan_osx_dynamic.dylib", |