Skip to content

Commit 6608cf2

Browse files
committed
build,deps,v8: tie up loose ends
PR-URL: #26666 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Ujjwal Sharma <[email protected]>
1 parent 269103a commit 6608cf2

File tree

3 files changed

+19
-24
lines changed

3 files changed

+19
-24
lines changed

deps/v8/gypfiles/inspector.gypi

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
{
9191
'action_name': 'protocol_compatibility',
9292
'inputs': [
93-
'<(inspector_path)/js_protocol.json',
93+
'<(inspector_path)/js_protocol.pdl',
9494
],
9595
'outputs': [
9696
'<@(SHARED_INTERMEDIATE_DIR)/src/js_protocol.stamp',
@@ -99,14 +99,14 @@
9999
'python',
100100
'<(protocol_path)/check_protocol_compatibility.py',
101101
'--stamp', '<@(_outputs)',
102-
'<(inspector_path)/js_protocol.json',
102+
'<@(_inputs)',
103103
],
104104
'message': 'Checking inspector protocol compatibility',
105105
},
106106
{
107107
'action_name': 'protocol_generated_sources',
108108
'inputs': [
109-
'<(inspector_path)/js_protocol.json',
109+
'<(inspector_path)/js_protocol.pdl',
110110
'<(inspector_path)/inspector_protocol_config.json',
111111
'<@(inspector_protocol_files)',
112112
],

deps/v8/gypfiles/v8.gyp

+12-17
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
'v8_random_seed%': 314159265,
99
'v8_vector_stores%': 0,
1010
'v8_embed_script%': "",
11+
# Placeholder. For upstream V8, this includes test files that Node.js does not need.
1112
'v8_extra_library_files%': [],
1213
'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
1314
'v8_os_page_size%': 0,
@@ -418,12 +419,16 @@
418419
'toolsets': ['host', 'target'],
419420
'dependencies': [
420421
'mksnapshot#host',
421-
'js2c#host',
422+
'js2c_extras#host', # TODO(refack) get rid of this.
423+
# This has effectively become a noop for Node.js,
424+
# but the V8 code still tried to acess the code this generates.
425+
# Refs: https://github.com/nodejs/node/blob/169b7f1f3b3751289f24678930e6a5731464ebc9/deps/v8/src/bootstrapper.cc#L5172-L5174
422426
],
423427
}, {
424428
'toolsets': ['target'],
425429
'dependencies': [
426430
'mksnapshot',
431+
'js2c_extras',
427432
],
428433
}],
429434
['component=="shared_library"', {
@@ -538,10 +543,10 @@
538543
'conditions': [
539544
['want_separate_host_toolset==1', {
540545
'toolsets': ['host', 'target'],
541-
'dependencies': ['js2c#host'],
546+
'dependencies': [ 'js2c_extras#host', ],
542547
}, {
543548
'toolsets': ['target'],
544-
'dependencies': ['js2c#target'],
549+
'dependencies': [ 'js2c_extras', ],
545550
}],
546551
['component=="shared_library"', {
547552
'defines': [
@@ -2508,7 +2513,7 @@
25082513
},
25092514
}, # v8_libsampler
25102515
{
2511-
'target_name': 'js2c',
2516+
'target_name': 'js2c_extras',
25122517
'type': 'none',
25132518
'conditions': [
25142519
['want_separate_host_toolset==1', {
@@ -2517,14 +2522,6 @@
25172522
'toolsets': ['target'],
25182523
}],
25192524
],
2520-
'variables': {
2521-
'library_files': [
2522-
'../src/js/macros.py',
2523-
'../src/message-template.h',
2524-
'../src/js/prologue.js',
2525-
],
2526-
'libraries_extras_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries-extras.bin',
2527-
},
25282525
'actions': [
25292526
{
25302527
'action_name': 'js2c_extras',
@@ -2535,14 +2532,12 @@
25352532
'outputs': ['<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc'],
25362533
'action': [
25372534
'python',
2538-
'../tools/js2c.py',
2539-
'<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
2540-
'EXTRAS',
2541-
'<@(v8_extra_library_files)',
2535+
'../tools/js2c.py', '<@(_outputs)',
2536+
'EXTRAS', '<@(v8_extra_library_files)',
25422537
],
25432538
},
25442539
],
2545-
}, # js2c
2540+
}, # js2c_extras
25462541
{
25472542
'target_name': 'torque_base',
25482543
'type': '<(component)',

deps/v8/gypfiles/v8_external_snapshot.gypi

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
'toolsets': ['host', 'target'],
1212
'dependencies': [
1313
'mksnapshot#host',
14-
'js2c#host',
14+
'js2c_extras#host',
1515
'natives_blob',
1616
]
1717
}, {
@@ -141,7 +141,7 @@
141141
['v8_use_external_startup_data==1', {
142142
'conditions': [
143143
['want_separate_host_toolset==1', {
144-
'dependencies': ['js2c#host'],
144+
'dependencies': ['js2c_extras#host'],
145145
}],
146146
],
147147
'actions': [
@@ -151,14 +151,14 @@
151151
'../tools/js2c.py',
152152
'<@(v8_extra_library_files)',
153153
],
154-
'outputs': ['<@(libraries_extras_bin_file)'],
154+
'outputs': ['<(SHARED_INTERMEDIATE_DIR)/libraries-extras.bin'],
155155
'action': [
156156
'python',
157157
'../tools/js2c.py',
158158
'<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
159159
'EXTRAS',
160160
'<@(v8_extra_library_files)',
161-
'--startup_blob', '<@(libraries_extras_bin_file)',
161+
'--startup_blob', '<@(_outputs)',
162162
'--nojs',
163163
],
164164
},

0 commit comments

Comments
 (0)