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

Issue 224443003: Use abstract configurations to switch between opt debug settings (Closed)

Created:
6 years, 8 months ago by jochen (gone - plz use gerrit)
Modified:
6 years, 8 months ago
CC:
v8-dev
Visibility:
Public.

Description

Use abstract configurations to switch between opt debug settings The problem is that conditions are evaluated before configuration inheritance is resolved, so we can't just define a configuration like this: 'Optdebug': { 'inherits_from': ['Debug'], 'variables': { 'v8_optimized_debug': 2, } } Instead, we have to put the different settings depending on the optimization level into separate configurations, and use conditions inside the concrete configurations to inherit from the correct base class. Common settings go in the base configuration DebugBaseCommon, and v8_optimized_debug dependent settings go into DebugBase{0,1,2} The new Debug configuration inherits from DebugBaseCommon and DebugBase<(v8_optimized_debug), while the new configuration Optdebug inherits from DebugBaseCommon and DebugBase2. BUG=v8:3252 R=machenbach@chromium.org, jkummerow@chromium.org LOG=n Committed: https://code.google.com/p/v8/source/detail?r=20605

Patch Set 1 #

Patch Set 2 : updates #

Patch Set 3 : updates #

Total comments: 3

Patch Set 4 : updates #

Patch Set 5 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -121 lines) Patch
M build/features.gypi View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M build/standalone.gypi View 1 2 3 4 1 chunk +7 lines, -1 line 0 comments Download
M build/toolchain.gypi View 1 2 3 3 chunks +163 lines, -119 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jochen (gone - plz use gerrit)
https://codereview.chromium.org/224443003/diff/40001/build/standalone.gypi File build/standalone.gypi (right): https://codereview.chromium.org/224443003/diff/40001/build/standalone.gypi#newcode195 build/standalone.gypi:195: 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', Any idea why ...
6 years, 8 months ago (2014-04-03 22:21:37 UTC) #1
Nico
I'm pretty surprised by the duplicate flags too. I wonder why that doesn't happen for ...
6 years, 8 months ago (2014-04-04 04:55:42 UTC) #2
tfarina
This is a work in progress to replace the top-level Makefile, right? https://codereview.chromium.org/224443003/diff/40001/build.ninja File build.ninja ...
6 years, 8 months ago (2014-04-05 01:52:31 UTC) #3
jochen (gone - plz use gerrit)
On 2014/04/05 01:52:31, tfarina wrote: > This is a work in progress to replace the ...
6 years, 8 months ago (2014-04-05 18:00:10 UTC) #4
jochen (gone - plz use gerrit)
btw, the duplicatino happens somewhere inside SetUpConfigurations
6 years, 8 months ago (2014-04-05 18:17:21 UTC) #5
jochen (gone - plz use gerrit)
PTAL
6 years, 8 months ago (2014-04-08 20:34:21 UTC) #6
Michael Achenbach
lgtm
6 years, 8 months ago (2014-04-09 08:48:55 UTC) #7
jochen (gone - plz use gerrit)
6 years, 8 months ago (2014-04-09 09:55:02 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 manually as r20605 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698