Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Issue 2495643002: Make /fastlink builds as optimized as non-/fastlink builds (Closed)

Created:
4 years, 1 month ago by brucedawson
Modified:
4 years, 1 month ago
Reviewers:
scottmg
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make /fastlink builds as optimized as non-/fastlink builds The /DEBUG:FASTLINK flag is incompatible with /PROFILE, so we turn off /PROFILE when using /DEBUG:FASTLINK. However /PROFILE turns on various linker optimization, which means that /DEBUG:FASTLINK results in larger binaries, for no good reason. This was causing some confusion when working on size optimizations. This change ensures that when /PROFILE is turned off due to /DEBUG:FASTLINK that the same linker optimization flags are applied. This has no effect on non-fastlink builds, it just ensures that is_win_fastlink does not affect binary sizes. Link times (measured for non-component 64-bit release chrome.dll and chrome_child.dll) are about 2.7 faster with fastlink than without with this change, which is inline with before. This change also avoids using /debug:fastlink on minimal_symbols builds. On such builds (because there is no debug information in the .obj files or shared .pdb files) fastlink has no value and actually makes the final PDBs slightly *bigger*. BUG=495670 Committed: https://crrev.com/b05140cde29b38d482e1201b77fcf68fd310daa7 Cr-Commit-Position: refs/heads/master@{#431985}

Patch Set 1 #

Patch Set 2 : Don't enable fastlink on minimal_symbols builds #

Total comments: 3

Patch Set 3 : Fix is_syzyasan logic per code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -12 lines) Patch
M build/config/compiler/BUILD.gn View 1 1 chunk +1 line, -8 lines 0 comments Download
M build/config/win/BUILD.gn View 1 2 1 chunk +21 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
brucedawson
4 years, 1 month ago (2016-11-10 21:48:13 UTC) #7
scottmg
https://codereview.chromium.org/2495643002/diff/20001/build/config/win/BUILD.gn File build/config/win/BUILD.gn (right): https://codereview.chromium.org/2495643002/diff/20001/build/config/win/BUILD.gn#newcode96 build/config/win/BUILD.gn:96: if (is_win_fastlink) { I think this changes the behaviour ...
4 years, 1 month ago (2016-11-10 21:56:27 UTC) #8
brucedawson
https://codereview.chromium.org/2495643002/diff/20001/build/config/win/BUILD.gn File build/config/win/BUILD.gn (right): https://codereview.chromium.org/2495643002/diff/20001/build/config/win/BUILD.gn#newcode96 build/config/win/BUILD.gn:96: if (is_win_fastlink) { On 2016/11/10 21:56:27, scottmg (ooo nov11) ...
4 years, 1 month ago (2016-11-10 22:04:06 UTC) #9
brucedawson
Okay, should be good now. Now this change should only affect is_win_fastlink builds, as designed. ...
4 years, 1 month ago (2016-11-14 21:34:55 UTC) #13
scottmg
lgtm
4 years, 1 month ago (2016-11-14 22:38:57 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2495643002/40001
4 years, 1 month ago (2016-11-14 22:53:24 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-14 23:49:13 UTC) #20
commit-bot: I haz the power
4 years, 1 month ago (2016-11-14 23:58:17 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b05140cde29b38d482e1201b77fcf68fd310daa7
Cr-Commit-Position: refs/heads/master@{#431985}

Powered by Google App Engine
This is Rietveld 408576698