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

Issue 11304012: Add support at test for /PROFILE in Ninja (Closed)

Created:
8 years, 1 month ago by noelallen1
Modified:
8 years, 1 month ago
Reviewers:
scottmg
CC:
gyp-developer_googlegroups.com
Visibility:
Public.

Description

Add support at test for /PROFILE in Ninja On Windows, have Ninja scan VCLinkerTool to a 'Profile' key. If 'true', then set the '/PROFILE' switch. This feature is neede to support syzygy BUG=126499 TEST=gyptest-ninja-link-flags Committed: https://code.google.com/p/gyp/source/detail?r=1526

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -0 lines) Patch
M pylib/gyp/msvs_emulation.py View 1 2 3 1 chunk +1 line, -0 lines 1 comment Download
A test/win/gyptest-link-profile.py View 1 1 chunk +37 lines, -0 lines 0 comments Download
A test/win/linker-flags/profile.gyp View 1 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
noelallen1
8 years, 1 month ago (2012-10-26 20:26:47 UTC) #1
scottmg
https://codereview.chromium.org/11304012/diff/1/pylib/gyp/msvs_emulation.py File pylib/gyp/msvs_emulation.py (right): https://codereview.chromium.org/11304012/diff/1/pylib/gyp/msvs_emulation.py#newcode405 pylib/gyp/msvs_emulation.py:405: ld('Profile', map={ 'false': '', '': '', 'true': '/PROFILE'}) remove ...
8 years, 1 month ago (2012-10-26 20:31:57 UTC) #2
scottmg
Also, apparently this doesn't actually work in most builds of VS (Enterprise+ only): http://msdn.microsoft.com/en-us/library/ays5x7b0(v=vs.100).aspx Is ...
8 years, 1 month ago (2012-10-26 20:36:46 UTC) #3
scottmg
d:\src\cr2\src>type a.cc int data = 434; __declspec(dllexport) int x() { return data; } int main() ...
8 years, 1 month ago (2012-10-26 20:42:37 UTC) #4
noelallen1
8 years, 1 month ago (2012-10-27 23:21:21 UTC) #5
noelallen1
Reworked as recommended. Now using dumpbin, and now supports both msvs & ninja configs. http://codereview.chromium.org/11304012/diff/1/pylib/gyp/msvs_emulation.py ...
8 years, 1 month ago (2012-10-27 23:22:00 UTC) #6
scottmg
Other than that, lgtm, thanks. Is this going to fail on bots though? http://msdn.microsoft.com/en-us/library/ays5x7b0(v=vs.100).aspx says ...
8 years, 1 month ago (2012-10-29 15:33:33 UTC) #7
noelallen1
I have an enterprise version installed I believe. As it is, it does pass the ...
8 years, 1 month ago (2012-10-29 20:22:22 UTC) #8
scottmg
8 years, 1 month ago (2012-10-29 20:27:36 UTC) #9
Hmm, my non-Enterprise version has a /PROFILE switch, so I guess the docs are
wrong. (?) Anyway, we can figure out a way to conditionally disable running the
test if we need to later.

http://codereview.chromium.org/11304012/diff/20004/pylib/gyp/msvs_emulation.py
File pylib/gyp/msvs_emulation.py (right):

http://codereview.chromium.org/11304012/diff/20004/pylib/gyp/msvs_emulation.p...
pylib/gyp/msvs_emulation.py:405: ld('Profile', map={ 'true': '/PROFILE'})
nit: extra space here

Powered by Google App Engine
This is Rietveld 408576698