Skip to content

Commit c9f09ab

Browse files
committed
fixup! build: pass directory instead of list of files to js2c.py
1 parent 1cbb9af commit c9f09ab

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

node.gyp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
# The lengths of their file names combined should not exceed the
3333
# Windows command length limit or there would be an error.
3434
# See https://docs.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation
35+
'library_files': [
36+
'<!@(python tools/search_files.py --ext js lib)',
37+
],
3538
'deps_files': [
3639
'deps/v8/tools/splaytree.mjs',
3740
'deps/v8/tools/codemap.mjs',
@@ -554,7 +557,7 @@
554557
# Dependency headers
555558
'deps/v8/include/v8.h',
556559
# javascript files to make for an even more pleasant IDE experience
557-
'<!@(python tools/search_files.py --ext js lib)',
560+
'<@(library_files)',
558561
'<@(deps_files)',
559562
# node.gyp is added by default, common.gypi is added for change detection
560563
'common.gypi',
@@ -808,7 +811,7 @@
808811
'inputs': [
809812
# Put the code first so it's a dependency and can be used for invocation.
810813
'tools/js2c.py',
811-
'<!@(python tools/search_files.py --ext js lib)',
814+
'<@(library_files)',
812815
'<@(deps_files)',
813816
'config.gypi'
814817
],
@@ -1366,7 +1369,7 @@
13661369
'deps/v8/include',
13671370
],
13681371
'sources': [
1369-
'<!@(python tools/search_files.py --ext js lib)',
1372+
'<@(library_files)',
13701373
'<@(deps_files)',
13711374
'common.gypi',
13721375
],

0 commit comments

Comments
 (0)