Index: base/allocator/BUILD.gn |
diff --git a/base/allocator/BUILD.gn b/base/allocator/BUILD.gn |
index 9d09a357af6efcaf2d73a551ee46cc1c54409b01..a57206a5d043ca2e674d4bebd68d399dcd4e52dd 100644 |
--- a/base/allocator/BUILD.gn |
+++ b/base/allocator/BUILD.gn |
@@ -16,19 +16,19 @@ declare_args() { |
enable_debugallocation = is_debug |
} |
-# Only executables and not libraries should depend on the allocator target; |
-# only the application (the final executable) knows what allocator makes sense. |
# This "allocator" meta-target will forward to the default allocator according |
# to the build settings. |
group("allocator") { |
- public_deps = [] |
+ deps = [] |
+ |
if (use_allocator == "tcmalloc") { |
- public_deps += [ ":tcmalloc" ] |
+ deps += [ ":tcmalloc" ] |
} |
# This condition expresses the win_use_allocator_shim in the GYP build. |
if (is_win && !is_component_build && visual_studio_version != "2015") { |
- public_deps += [ ":allocator_shim" ] |
+ deps += [ ":allocator_shim" ] |
+ all_dependent_configs = [ ":nocmt" ] |
} |
} |
@@ -107,10 +107,8 @@ if (is_win) { |
configs -= [ "//build/config/compiler:chromium_code" ] |
configs += [ "//build/config/compiler:no_chromium_code" ] |
- public_configs = [ ":nocmt" ] |
deps = [ |
":prep_libc", |
- "//base", |
] |
} |
} |