Index: content/renderer/BUILD.gn |
diff --git a/content/renderer/BUILD.gn b/content/renderer/BUILD.gn |
index abfdbfe42b9bc3a68773ddffd144c5e72baa88a2..6ee77049e0d4023a2b493dbfab9015ac33c90a00 100644 |
--- a/content/renderer/BUILD.gn |
+++ b/content/renderer/BUILD.gn |
@@ -5,6 +5,7 @@ |
import("//build/config/chromecast_build.gni") |
import("//build/config/features.gni") |
import("//build/config/ui.gni") |
+import("//build/split_static_library.gni") |
import("//media/media_options.gni") |
import("//ppapi/features/features.gni") |
import("//printing/features/features.gni") |
@@ -14,8 +15,9 @@ import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
if (is_component_build) { |
link_target_type = "source_set" |
} else { |
- link_target_type = "static_library" |
+ link_target_type = "split_static_library" |
} |
+ |
target(link_target_type, "renderer") { |
# Only the public target should depend on this. All other targets (even |
# internal content ones) should depend on the public one. |
@@ -387,6 +389,15 @@ target(link_target_type, "renderer") { |
"webscrollbarbehavior_impl_mac.mm", |
] |
+ if (!is_component_build) { |
+ if (is_win && is_official_build) { |
+ split_count = 2 # In certain configurations a full renderer.lib can |
+ # be 2+ GB which breaks some Windows tools. |
+ } else { |
+ split_count = 1 |
+ } |
+ } |
+ |
configs += [ |
"//content:content_implementation", |
"//build/config/compiler:no_size_t_to_int_warning", |