Skip to content

Commit 14912d8

Browse files
committed
tools: refactor js2c.py for maximal Python3 compatibility
* simplify js2c semantics
1 parent 0f190a5 commit 14912d8

File tree

2 files changed

+176
-140
lines changed

2 files changed

+176
-140
lines changed

node.gyp

+4-3
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,8 @@
791791
'action_name': 'node_js2c',
792792
'process_outputs_as_sources': 1,
793793
'inputs': [
794+
# Put the code first so it's a dependency and can be used for invocation.
795+
'tools/js2c.py',
794796
'<@(library_files)',
795797
'config.gypi',
796798
'tools/check_macros.py'
@@ -810,9 +812,8 @@
810812
}]
811813
],
812814
'action': [
813-
'python', 'tools/js2c.py',
814-
'<@(_outputs)',
815-
'<@(_inputs)',
815+
'python', '<@(_inputs)',
816+
'--target', '<@(_outputs)',
816817
],
817818
},
818819
],

0 commit comments

Comments
 (0)