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

Issue 10382161: Fix bug in ninja generator when there's no default action. (Closed)

Created:
8 years, 7 months ago by Yaron
Modified:
8 years, 6 months ago
Reviewers:
Nico
CC:
gyp-developer_googlegroups.com
Base URL:
http://git.chromium.org/external/gyp.git@master
Visibility:
Public.

Description

Fix bug in ninja generator when there's no default action. In some cases, an action is only evaluated under certain conditions. Previously this would break the ninja generator but works fine in the make generator. BUG=gyp:253 TEST=python gyptest.py -a test/rules/gyptest-all.py passes r1410

Patch Set 1 #

Patch Set 2 : added test #

Patch Set 3 : corrected test #

Patch Set 4 : revert test change #

Total comments: 5

Patch Set 5 : changed guard to no rule and no input #

Patch Set 6 : added test for inputs but no action #

Patch Set 7 : fix other generators #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -1 line) Patch
M pylib/gyp/generator/msvs.py View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M pylib/gyp/generator/ninja.py View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M pylib/gyp/generator/scons.py View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M test/rules/gyptest-all.py View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M test/rules/src/actions.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A test/rules/src/noaction/file1.in View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A test/rules/src/noaction/no_action_with_rules_fails.gyp View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
A test/rules/src/subdir2/no_action.gyp View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Yaron
This seems to work although I don't know if it's too naive and I'm missing ...
8 years, 7 months ago (2012-05-15 00:51:02 UTC) #1
Yaron
Err I lied. I thought I had it failing before the change but I changed ...
8 years, 7 months ago (2012-05-15 00:52:38 UTC) #2
Ami GONE FROM CHROMIUM
Removing myself from reviewers. (I see nothing obviously wrong here, but I also don't see ...
8 years, 7 months ago (2012-05-15 16:02:08 UTC) #3
Yaron
Ok, through constructing the test case, I found the root cause. Ninja evaluates rule['action'] before ...
8 years, 7 months ago (2012-05-15 16:49:26 UTC) #4
Nico
On 2012/05/15 16:49:26, Yaron wrote: > Ok, through constructing the test case, I found the ...
8 years, 7 months ago (2012-05-15 16:56:30 UTC) #5
Yaron
Ready for review now. Test reflects the edge case
8 years, 7 months ago (2012-05-15 17:12:57 UTC) #6
Nico
http://codereview.chromium.org/10382161/diff/5005/test/rules/src/subdir2/no_action.gyp File test/rules/src/subdir2/no_action.gyp (right): http://codereview.chromium.org/10382161/diff/5005/test/rules/src/subdir2/no_action.gyp#newcode5 test/rules/src/subdir2/no_action.gyp:5: # Test that the case where an action is ...
8 years, 7 months ago (2012-05-15 17:21:57 UTC) #7
Yaron
http://codereview.chromium.org/10382161/diff/5005/test/rules/src/subdir2/no_action.gyp File test/rules/src/subdir2/no_action.gyp (right): http://codereview.chromium.org/10382161/diff/5005/test/rules/src/subdir2/no_action.gyp#newcode5 test/rules/src/subdir2/no_action.gyp:5: # Test that the case where an action is ...
8 years, 7 months ago (2012-05-15 17:36:13 UTC) #8
Nico
http://codereview.chromium.org/10382161/diff/5005/test/rules/src/subdir2/no_action.gyp File test/rules/src/subdir2/no_action.gyp (right): http://codereview.chromium.org/10382161/diff/5005/test/rules/src/subdir2/no_action.gyp#newcode33 test/rules/src/subdir2/no_action.gyp:33: }, On 2012/05/15 17:36:13, Yaron wrote: > On 2012/05/15 ...
8 years, 7 months ago (2012-05-15 17:43:21 UTC) #9
Yaron
Added a test. Sorry for slow turnaround.
8 years, 7 months ago (2012-05-24 22:21:20 UTC) #10
Nico
LGTM Thanks for the test, and sorry for the slow review. I sent try jobs, ...
8 years, 7 months ago (2012-05-25 22:43:31 UTC) #11
Yaron
On 2012/05/25 22:43:31, Nico wrote: > LGTM > > Thanks for the test, and sorry ...
8 years, 6 months ago (2012-05-31 23:00:43 UTC) #12
Nico
8 years, 6 months ago (2012-05-31 23:11:29 UTC) #13
r1410

Powered by Google App Engine
This is Rietveld 408576698