| Index: allocator/BUILD.gn
|
| diff --git a/allocator/BUILD.gn b/allocator/BUILD.gn
|
| index 5a1e9df190ff7eca9e5640c787e3c65b9f4757f9..b6b7fc21b4263f6ea9f2bb97646cab33bfdd9947 100644
|
| --- a/allocator/BUILD.gn
|
| +++ b/allocator/BUILD.gn
|
| @@ -61,29 +61,31 @@ if (is_win) {
|
| libs = [ rebase_path("$target_gen_dir/allocator/libcmt.lib") ]
|
| }
|
|
|
| - action("prep_libc") {
|
| - script = "prep_libc.py"
|
| - outputs = [
|
| - "$target_gen_dir/allocator/libcmt.lib",
|
| - ]
|
| - args = [
|
| - visual_studio_path + "/vc/lib",
|
| - rebase_path("$target_gen_dir/allocator"),
|
| - current_cpu,
|
| - ]
|
| - }
|
| + if (!is_component_build) {
|
| + action("prep_libc") {
|
| + script = "prep_libc.py"
|
| + outputs = [
|
| + "$target_gen_dir/allocator/libcmt.lib",
|
| + ]
|
| + args = [
|
| + visual_studio_path + "/vc/lib",
|
| + rebase_path("$target_gen_dir/allocator"),
|
| + current_cpu,
|
| + ]
|
| + }
|
|
|
| - source_set("allocator_shim") {
|
| - sources = [
|
| - "allocator_shim_win.cc",
|
| - ]
|
| - configs -= [ "//build/config/compiler:chromium_code" ]
|
| - configs += [ "//build/config/compiler:no_chromium_code" ]
|
| + source_set("allocator_shim") {
|
| + sources = [
|
| + "allocator_shim_win.cc",
|
| + ]
|
| + configs -= [ "//build/config/compiler:chromium_code" ]
|
| + configs += [ "//build/config/compiler:no_chromium_code" ]
|
|
|
| - public_configs = [ ":nocmt" ]
|
| - deps = [
|
| - ":prep_libc",
|
| - ]
|
| + public_configs = [ ":nocmt" ]
|
| + deps = [
|
| + ":prep_libc",
|
| + ]
|
| + }
|
| }
|
| }
|
|
|
|
|