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

Issue 55283002: Always use chromium_code variable with target_conditions. (Closed)

Created:
7 years, 1 month ago by bungeman-chromium
Modified:
7 years, 1 month ago
Reviewers:
Mark Mentovai, tony, Nico
CC:
chromium-reviews
Visibility:
Public.

Description

Always use chromium_code variable with target_conditions. The chromium_code variable is designed to be set by targets. However, if it is used in a conditions predicate in common.gypi, it will always be false, since conditions are evaluated early. target_conditions are evaluated late, after the target has had a chance to set its own variables. R=mark@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232397

Patch Set 1 #

Patch Set 2 : Line lengths. #

Patch Set 3 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -33 lines) Patch
M build/common.gypi View 1 2 3 chunks +44 lines, -33 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
bungeman-chromium
I discovered this when noticing that none of the targets in cloud_print/service/service.gyp were getting the ...
7 years, 1 month ago (2013-10-31 20:56:32 UTC) #1
bungeman-chromium
Mark, it looks like you're the one who added the target scope for the chromium_code ...
7 years, 1 month ago (2013-10-31 21:30:01 UTC) #2
tony
On 2013/10/31 21:30:01, bungeman2 wrote: > Mark, it looks like you're the one who added ...
7 years, 1 month ago (2013-10-31 21:31:20 UTC) #3
Mark Mentovai
LGTM. chromium_code should only be evaluated in a target_conditions context, not in an “early” conditions ...
7 years, 1 month ago (2013-10-31 21:46:47 UTC) #4
bungeman-skia
7 years, 1 month ago (2013-11-01 15:16:31 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r232397 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698