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

Issue 67199: Add a way to override optimization level for debug builds on Linux (Closed)

Created:
11 years, 8 months ago by dank
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add a new option, debug_optimize, that lets you set the optimization level used for debug builds on linux. They still default to -O0, but you can set them to -O1 by doing 'gyp -Ddebug_optimize=1'. This cuts valgrind runtime without screwing up stack dumps too badly. On the buildbot, the easiest way to use this is to create the file ~/.gyp/include.gypi by hand, containing the lines # Override for valgrind buildbot { 'variables': { 'debug_optimize': '1', }, } From then on, any "gclient sync" run, when it runs gyp after finishing, will cause debug builds to use -O1. This is a bit obscure, but it's a heck of a lot easier than threading some flag value through the buildbot scripts or adding a new build mode. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14046

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M build/common.gypi View 1 2 1 chunk +4 lines, -1 line 1 comment Download

Messages

Total messages: 5 (0 generated)
dank
I'm just guessing here, but it does seem to work on linux...
11 years, 8 months ago (2009-04-16 02:14:40 UTC) #1
Mark Mentovai
Aside from not being in love with the name OptDebug, which is no big deal, ...
11 years, 8 months ago (2009-04-16 16:45:48 UTC) #2
dank
switched to gyp magic
11 years, 8 months ago (2009-04-17 22:44:21 UTC) #3
Mark Mentovai
LG with a comment. http://codereview.chromium.org/67199/diff/6/2002 File build/common.gypi (right): http://codereview.chromium.org/67199/diff/6/2002#newcode247 Line 247: '-O2', I suggest doing ...
11 years, 8 months ago (2009-04-20 19:06:54 UTC) #4
dank
11 years, 8 months ago (2009-04-20 19:10:21 UTC) #5
I tried that, but ran into trouble.  I'm happier keeping the patch minimal for
the moment.  We can easily generalize later.

Powered by Google App Engine
This is Rietveld 408576698