Index: third_party/WebKit/Source/modules/BUILD.gn |
diff --git a/third_party/WebKit/Source/modules/BUILD.gn b/third_party/WebKit/Source/modules/BUILD.gn |
index e907a8bca713885647d85b7f62062bac33ac9573..97160266958fd5bb8094c64b11d892c91a24c2f0 100644 |
--- a/third_party/WebKit/Source/modules/BUILD.gn |
+++ b/third_party/WebKit/Source/modules/BUILD.gn |
@@ -14,6 +14,14 @@ visibility = [ "//third_party/WebKit/Source/*" ] |
component("modules") { |
output_name = "blink_modules" |
+ if (is_win && is_official_build) { |
+ # This target is >2GB for official builds on Windows which causes linking |
+ # with the library to fail. As a workaround, force using a source set in |
+ # this configuration whcih avoids generating the .lib file (although will |
+ # cause slower links). |
+ static_component_type = "source_set" |
+ } |
+ |
visibility = [] # Allow re-assignment of list. |
visibility = [ "//third_party/WebKit/*" ] |