Index: sandbox/win/BUILD.gn |
diff --git a/sandbox/win/BUILD.gn b/sandbox/win/BUILD.gn |
index 4d1dd58b26d6ec42f8cd10615295a097226f4712..327396b5d16c0c7933d3fc1161648b3cc34a7df0 100644 |
--- a/sandbox/win/BUILD.gn |
+++ b/sandbox/win/BUILD.gn |
@@ -4,7 +4,11 @@ |
import("//testing/test.gni") |
-source_set("sandbox") { |
+# This needs to be a static library rather than a sources set because small |
+# portions of this are used in some contexts (like chrome_elf), and it |
+# doesnn't seem to dead-code strip very well. This saves 12K on chrome_elf.dll, |
+# over a source set, for example. |
+static_library("sandbox") { |
sources = [ |
"src/acl.cc", |
"src/acl.h", |