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

Issue 107293004: win msvs: make ordering match .gyp order (Closed)

Created:
7 years ago by scottmg
Modified:
7 years ago
Reviewers:
Nico
CC:
gyp-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/gyp.git@master
Visibility:
Public.

Description

win msvs: make ordering match .gyp order The order of .obj on the link command line determines the order in the final binary in the absence of other need to re-order. Make them consistent across the windows generators by making them match the order in the .gyp file, and add a test for this behaviour. This was already ninja's behaviour. R=thakis@chromium.org BUG=chromium:326030 Committed: https://code.google.com/p/gyp/source/detail?r=1807

Patch Set 1 #

Patch Set 2 : Use .gyp order instead of sorting #

Total comments: 6

Patch Set 3 : use OrderedSet instead #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -32 lines) Patch
M pylib/gyp/generator/msvs.py View 1 2 15 chunks +68 lines, -28 lines 2 comments Download
A test/win/gyptest-link-ordering.py View 1 1 chunk +53 lines, -0 lines 0 comments Download
A test/win/linker-flags/link-ordering.gyp View 1 1 chunk +37 lines, -0 lines 0 comments Download
A + test/win/linker-flags/main-crt.c View 1 chunk +3 lines, -1 line 0 comments Download
A + test/win/linker-flags/x.cc View 1 chunk +2 lines, -1 line 0 comments Download
A + test/win/linker-flags/y.cc View 1 chunk +2 lines, -1 line 0 comments Download
A + test/win/linker-flags/z.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
scottmg
7 years ago (2013-12-06 05:52:35 UTC) #1
Nico
Can't both msvs and ninja use the order from the ninja file, wouldn't they match ...
7 years ago (2013-12-06 06:38:24 UTC) #2
scottmg
Now in gyp order instead of sorted.
7 years ago (2013-12-06 07:05:42 UTC) #3
Nico
Thanks, I like this much better conceptually. I found a few places that still look ...
7 years ago (2013-12-06 16:28:29 UTC) #4
scottmg
Sorry, I should have waited for the tryjobs to finish. There're cases where e.g. action ...
7 years ago (2013-12-06 19:10:22 UTC) #5
Nico
lgtm https://codereview.chromium.org/107293004/diff/120001/pylib/gyp/generator/msvs.py File pylib/gyp/generator/msvs.py (right): https://codereview.chromium.org/107293004/diff/120001/pylib/gyp/generator/msvs.py#newcode102 pylib/gyp/generator/msvs.py:102: def discard(self, key): Is this needed?
7 years ago (2013-12-06 20:35:53 UTC) #6
scottmg
https://codereview.chromium.org/107293004/diff/120001/pylib/gyp/generator/msvs.py File pylib/gyp/generator/msvs.py (right): https://codereview.chromium.org/107293004/diff/120001/pylib/gyp/generator/msvs.py#newcode102 pylib/gyp/generator/msvs.py:102: def discard(self, key): On 2013/12/06 20:35:54, Nico wrote: > ...
7 years ago (2013-12-06 20:43:46 UTC) #7
scottmg
7 years ago (2013-12-06 21:04:44 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 manually as r1807 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698