Uh oh!
There was an error while loading. Please reload this page.
build, tools, win: add .S files support to GYP - #24553
Conversation
Makes GYP properly handle .S files. Fixes: nodejs/node-v8#89
Tentative CI on top of Edit: rebase cannot work ofc. Let me apply it manually... Edit: https://ci.nodejs.org/job/node-test-commit-windows-fanned/22589/ (on https://github.com/targos/node/commits/test-24553) |
| elif ext == '.asm': | ||
| group = 'masm' | ||
| element = 'MASM' | ||
| elif ext == '.S': |
There was a problem hiding this comment.
I'd suggest doing it like this
| elifext=='.S': | |
| elifext.lower() in ['.asm', '.s']: |
There was a problem hiding this comment.
Is that equivalent? On Unices the convention is that .S should be run through cpp whereas .s should not. I don't know if that's applicable to usually-case-insensitive Windows.
There was a problem hiding this comment.
AFAICT .s nor .S are standard for MSVS. It's more common to see .asm.
And in this case while the file indeed has .S semantics on Unices, cl.exe doesn't except it.
Seems like we have the same bug in ninja.py, so maybe the fix should be in v8.gyp, changing the extension to .asm iff Windows.
There was a problem hiding this comment.
node/tools/gyp/pylib/gyp/generator/ninja.py
Lines 1038 to 1047 in 0c64816
targos
commented
Nov 21, 2018
The canary CI failed on 32bit but maybe it's unrelated? https://ci.nodejs.org/job/node-compile-windows/22547/label=win-vs2017-x86/console |
refack
commented
Nov 21, 2018
Error seems unrelated as it refers to an |
bzoz
commented
Nov 22, 2018
Updated to support both lower and upper cases, PTAL. |
bzoz
commented
Nov 29, 2018
bzoz
commented
Nov 29, 2018
Failures are unrelated. |
bzoz
commented
Nov 29, 2018
Landed in 9920dbc |
Makes GYP properly handle .S files. Fixes: nodejs/node-v8#89 PR-URL: nodejs#24553 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Makes GYP properly handle .S files. Fixes: nodejs/node-v8#89 PR-URL: #24553 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Makes GYP properly handle .S files. Fixes: nodejs/node-v8#89 PR-URL: nodejs#24553 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Makes GYP properly handle .S files. Fixes: nodejs/node-v8#89 PR-URL: #24553 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Makes GYP properly handle .S files. Fixes: nodejs/node-v8#89 PR-URL: #24553 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Makes GYP properly handle .S files.
Fixes: nodejs/node-v8#89
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes