summaryrefslogtreecommitdiffstats
path: root/build/config/win
diff options
context:
space:
mode:
authorbrucedawson <brucedawson@chromium.org>2015-07-28 11:36:46 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-28 18:37:23 +0000
commit24a5806209d95faea058684b03a2d5f42c18ecae (patch)
tree118cd9d80ee7dcd88b18fb6ce5865935daf56354 /build/config/win
parent406ec4ba40994680cd045eda7a4a40a12cd20fe5 (diff)
downloadchromium_src-24a5806209d95faea058684b03a2d5f42c18ecae.zip
chromium_src-24a5806209d95faea058684b03a2d5f42c18ecae.tar.gz
chromium_src-24a5806209d95faea058684b03a2d5f42c18ecae.tar.bz2
Add support for /DEBUG:FASTLINK to gyp and gn files.
VC++ 2015 has a /DEBUG:FASTLINK option that can significantly improve link performance on developer machines. Compared to normal VS 2015 links it reduces elapsed time by 33-55% and reduces peak working set by 65-90%. PDB sizes are reduced by 65-72%. /DEBUG:FASTLINK works by having PDB files reference symbols in .obj and .lib files instead of copying the debug information. This means that PDBs only work on the machine they were created on, and only as long as the .obj and .lib files exist, but this constraint matches local-developer-builds very nicely. /DEBUG:FASTLINK has an (undocumented) restriction that it is disabled if /PROFILE is selected. For GYP builds this feature is enabled with GYP_DEFINES=win_fastlink=1 For gn builds this feature is enabled with is_win_fastlink = true in args.gn. This switch is not supported on VC++ 2013 This connect bug requests a tool to de-fastlink a PDB so that it can be shared/deployed for debugging on other machines: https://connect.microsoft.com/VisualStudio/feedback/details/1598471 BUG=440500 R=jochen@chromium.org Review URL: https://codereview.chromium.org/1254723012 Cr-Commit-Position: refs/heads/master@{#340733}
Diffstat (limited to 'build/config/win')
-rw-r--r--build/config/win/visual_studio_version.gni2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/config/win/visual_studio_version.gni b/build/config/win/visual_studio_version.gni
index 6a2828c35..358fdb3 100644
--- a/build/config/win/visual_studio_version.gni
+++ b/build/config/win/visual_studio_version.gni
@@ -20,6 +20,8 @@ declare_args() {
# This value is the default location, override if you have a different
# installation location.
windows_sdk_path = "C:\Program Files (x86)\Windows Kits\8.1"
+
+ is_win_fastlink = false
}
if (visual_studio_path == "") {