summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-07-28 11:24:42 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-28 18:25:26 +0000
commitbc8b2a244ab981b264a86f5f2a64464089e05e32 (patch)
treee2e70581f1d4bee76a0e0535791c0c90bfb59929 /storage
parent9e85b9478bb4eebe150d1f896aaf568fe951eade (diff)
downloadchromium_src-bc8b2a244ab981b264a86f5f2a64464089e05e32.zip
chromium_src-bc8b2a244ab981b264a86f5f2a64464089e05e32.tar.gz
chromium_src-bc8b2a244ab981b264a86f5f2a64464089e05e32.tar.bz2
Annotate large GN targets for precompiled headers
Adds the precompiled header config to most large-ish targets in the build, but keeps the config a no-op (so no precompiled headers will be used but this can bw switched with a one-line change). Removes Windows files from the precompiled header. This does not seem to affect the build speed much because most Chrome files don't depend on Windows any more. And windows.h injects typedefs and defines that conflict with some third party libraries and prevent using precompiled headers for those targets or any target that includes them. I counted ~50 files or bigger as large. The 50 file threshold is based on some previous approximate measurements (since the precompile step is an extra per-target compile, it can actually make small targets compile slower). For borderline cases, I added the precompiled header flag if I thought it was likely to have more files added, and didn't add it if I thought the target was likely to be static. This is a reland of https://codereview.chromium.org/1250273002/ with the config disabled for easier re-landing and iterating CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel TBR=dpranke Review URL: https://codereview.chromium.org/1258273004 Cr-Commit-Position: refs/heads/master@{#340728}
Diffstat (limited to 'storage')
-rw-r--r--storage/browser/BUILD.gn2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/browser/BUILD.gn b/storage/browser/BUILD.gn
index 60cac60..3c669fa 100644
--- a/storage/browser/BUILD.gn
+++ b/storage/browser/BUILD.gn
@@ -171,6 +171,8 @@ component("browser") {
defines = [ "STORAGE_BROWSER_IMPLEMENTATION" ]
configs += [
+ "//build/config:precompiled_headers",
+
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
"//build/config/compiler:no_size_t_to_int_warning",
"//build/config/compiler:wexit_time_destructors",