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

Issue 8966025: 3 additions to common.gypi to control FPO and general cflags for Windows tool builds (Closed)

Created:
9 years ago by Derek Bruening
Modified:
9 years ago
Reviewers:
brettw, M-A Ruel
CC:
chromium-reviews, drmemory-team_google.com
Visibility:
Public.

Description

3 additions to common.gypi: 1) re-instate r113657 from crbug/106711: win_release_OmitFramePointers=0 must explicitly pass /Oy- since /O2 implies /Oy 2) add win_debug_OmitFramePointers as tri-state where blank value (the default) avoids perturbing VS defaults 3) add win_release_extra_cflags and win_debug_extra_cflags to make it easier to add custom local flags for tool builds BUG=106711 TEST=Tweaked these vars via GYP_DEFINES and include.gypi and confirmed the changes in build/All.vcproj For example: I have "'win_release_InlineFunctionExpansion': 0" in my include.gypi: % GYP_DEFINES='win_debug_extra_cflags="/QIfist /nologo"' gclient runhooks % grep -E -o 'Name="[^"|]*\|[^"]*"|Omit[^ ]*|include" AdditionalOptions="[^"]*"' build/All.vcproj Name="Release|Win32" include" AdditionalOptions="/MP /Ob0" OmitFramePointers="true" Name="Debug|Win32" include" AdditionalOptions="/MP /QIfist /nologo" Name="Release|x64" include" AdditionalOptions="/MP /Ob0" OmitFramePointers="true" Name="Debug|x64" include" AdditionalOptions="/MP /QIfist /nologo" % GYP_DEFINES='win_release_extra_cflags="/QIfist /nologo" win_release_OmitFramePointers=0 win_debug_OmitFramePointers=1' gclient runhooks % grep -E -o 'Name="[^"|]*\|[^"]*"|Omit[^ ]*|include" AdditionalOptions="[^"]*"' build/All.vcproj Name="Release|Win32" include" AdditionalOptions="/MP /QIfist /nologo /Ob0 /Oy-" OmitFramePointers="false" Name="Debug|Win32" include" AdditionalOptions="/MP" OmitFramePointers="true" Name="Release|x64" include" AdditionalOptions="/MP /QIfist /nologo /Ob0 /Oy-" OmitFramePointers="false" Name="Debug|x64" include" AdditionalOptions="/MP" OmitFramePointers="true" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114893

Patch Set 1 #

Patch Set 2 : make it clear win_{release,debug}_OmitFramePointers are both tri-state #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
M build/common.gypi View 1 4 chunks +30 lines, -0 lines 5 comments Download

Messages

Total messages: 10 (0 generated)
Derek Bruening
9 years ago (2011-12-16 16:37:01 UTC) #1
Derek Bruening
We're waiting on this to make our bots green...
9 years ago (2011-12-16 21:25:20 UTC) #2
brettw
http://codereview.chromium.org/8966025/diff/5/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/8966025/diff/5/build/common.gypi#newcode1455 build/common.gypi:1455: 'OmitFramePointers': 'false', Just curious: would it be better to ...
9 years ago (2011-12-16 21:32:42 UTC) #3
M-A Ruel
http://codereview.chromium.org/8966025/diff/5/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/8966025/diff/5/build/common.gypi#newcode1450 build/common.gypi:1450: # if win_debug_OmitFramePointers is blank, leave as default There ...
9 years ago (2011-12-16 21:33:01 UTC) #4
Derek Bruening
http://codereview.chromium.org/8966025/diff/5/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/8966025/diff/5/build/common.gypi#newcode1450 build/common.gypi:1450: # if win_debug_OmitFramePointers is blank, leave as default On ...
9 years ago (2011-12-16 22:01:14 UTC) #5
brettw
I see, LGTM if maruel is also OK.
9 years ago (2011-12-16 22:05:21 UTC) #6
M-A Ruel
lgtm http://codereview.chromium.org/8966025/diff/5/build/common.gypi File build/common.gypi (right): http://codereview.chromium.org/8966025/diff/5/build/common.gypi#newcode1450 build/common.gypi:1450: # if win_debug_OmitFramePointers is blank, leave as default ...
9 years ago (2011-12-16 22:44:32 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bruening@chromium.org/8966025/5
9 years ago (2011-12-16 22:47:15 UTC) #8
Derek Bruening
On 2011/12/16 22:44:32, Marc-Antoine Ruel wrote: > lgtm Thank you for the quick review! > ...
9 years ago (2011-12-16 22:51:43 UTC) #9
commit-bot: I haz the power
9 years ago (2011-12-17 02:16:27 UTC) #10
Change committed as 114893

Powered by Google App Engine
This is Rietveld 408576698