mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
build, tools, win: add .S files support to GYP
Makes GYP properly handle .S files. Fixes: https://github.com/nodejs/node-v8/issues/89 PR-URL: https://github.com/nodejs/node/pull/24553 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
2c473d65a4
commit
9920dbcaf3
1 file changed
+2
-1
@@ -2156,6 +2156,7 @@ def _MapFileToMsBuildSourceType(source, rule_dependencies,
|
||||
A pair of (group this file should be part of, the label of element)
|
||||
"""
|
||||
_, ext = os.path.splitext(source)
|
||||
ext = ext.lower()
|
||||
if ext in extension_to_rule_name:
|
||||
group = 'rule'
|
||||
element = extension_to_rule_name[ext]
|
||||
@@ -2168,7 +2169,7 @@ def _MapFileToMsBuildSourceType(source, rule_dependencies,
|
||||
elif ext == '.rc':
|
||||
group = 'resource'
|
||||
element = 'ResourceCompile'
|
||||
elif ext == '.asm':
|
||||
elif ext in ['.s', '.asm']:
|
||||
group = 'masm'
|
||||
element = 'MASM'
|
||||
elif ext == '.idl':
|
||||
|
||||
Reference in new issue
Block a user