Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upbuild, tools, win: add .S files support to GYP #24553
Conversation
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot
added
build
tools
labels
Nov 21, 2018
This comment has been minimized.
This comment has been minimized.
|
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) |
| @@ -2171,6 +2171,9 @@ def _MapFileToMsBuildSourceType(source, rule_dependencies, | |||
| elif ext == '.asm': | |||
| group = 'masm' | |||
| element = 'MASM' | |||
| elif ext == '.S': | |||
This comment has been minimized.
This comment has been minimized.
refack
Nov 21, 2018
•
Member
I'd suggest doing it like this
| elif ext == '.S': | |
| elif ext.lower() in ['.asm', '.s']: |
This comment has been minimized.
This comment has been minimized.
bnoordhuis
Nov 21, 2018
Member
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.
This comment has been minimized.
This comment has been minimized.
refack
Nov 21, 2018
Member
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.
This comment has been minimized.
This comment has been minimized.
refack
Nov 21, 2018
Member
node/tools/gyp/pylib/gyp/generator/ninja.py
Lines 1038 to 1047 in 0c64816
refack
added
the
gyp
label
Nov 21, 2018
richardlau
approved these changes
Nov 21, 2018
refack
changed the base branch from
master
to
canary-base
Nov 21, 2018
refack
changed the base branch from
canary-base
to
master
Nov 21, 2018
addaleax
approved these changes
Nov 21, 2018
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
Error seems unrelated as it refers to an
|
This comment has been minimized.
This comment has been minimized.
|
Updated to support both lower and upper cases, PTAL. |
refack
approved these changes
Nov 22, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Failures are unrelated. |
This comment has been minimized.
This comment has been minimized.
|
Landed in 9920dbc |
bzoz commentedNov 21, 2018
Makes GYP properly handle .S files.
Fixes: nodejs/node-v8#89
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes