Index: build/config/sanitizers/BUILD.gn |
diff --git a/build/config/sanitizers/BUILD.gn b/build/config/sanitizers/BUILD.gn |
index 4c98dd3a0b929bcd071a3cb6e6ec14d337a6d0a4..f3c02b037d402c1a61ecbc6561f973749d9c5ba5 100644 |
--- a/build/config/sanitizers/BUILD.gn |
+++ b/build/config/sanitizers/BUILD.gn |
@@ -70,7 +70,8 @@ group("deps_no_options") { |
data_deps = [ |
":copy_asan_runtime", |
] |
- |
+ } |
+ if (is_mac) { |
public_deps += [ ":asan_runtime_bundle_data" ] |
} |
} |
@@ -93,14 +94,16 @@ if ((is_mac || is_win) && using_sanitizer) { |
] |
} |
- bundle_data("asan_runtime_bundle_data") { |
- sources = get_target_outputs(":copy_asan_runtime") |
- outputs = [ |
- "{{bundle_executable_dir}}/{{source_file_part}}", |
- ] |
- public_deps = [ |
- ":copy_asan_runtime", |
- ] |
+ if (is_mac) { |
+ bundle_data("asan_runtime_bundle_data") { |
+ sources = get_target_outputs(":copy_asan_runtime") |
+ outputs = [ |
+ "{{bundle_executable_dir}}/{{source_file_part}}", |
+ ] |
+ public_deps = [ |
+ ":copy_asan_runtime", |
+ ] |
+ } |
} |
} |