File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 13
13
'enable_pgo_generate%' : '0' ,
14
14
'enable_pgo_use%' : '0' ,
15
15
'python%' : 'python' ,
16
+ 'emulator%' : [],
17
+ 'emulator_path%' : '' ,
16
18
17
19
'node_shared%' : 'false' ,
18
20
'force_dynamic_crt%' : 0 ,
117
119
['target_arch in "ppc64 s390x"' , {
118
120
'v8_enable_backtrace' : 1 ,
119
121
}],
122
+ ['emulator_path != ""' , {
123
+ 'emulator%' : [
124
+ '<(emulator_path)'
125
+ ]
126
+ }],
120
127
['OS=="linux"' , {
121
128
'node_section_ordering_info%' : ''
122
129
}],
Original file line number Diff line number Diff line change 112
112
choices = valid_arch ,
113
113
help = f"CPU architecture to build for ({ ', ' .join (valid_arch )} )" )
114
114
115
+ parser .add_argument ('--emulator' ,
116
+ action = 'store' ,
117
+ dest = 'emulator' ,
118
+ default = None ,
119
+ help = 'use an emulator to run intermediate build tools' )
120
+
115
121
parser .add_argument ('--cross-compiling' ,
116
122
action = 'store_true' ,
117
123
dest = 'cross_compiling' ,
@@ -2283,6 +2289,9 @@ def make_bin_override():
2283
2289
else :
2284
2290
gyp_args += ['-f' , 'make-' + flavor ]
2285
2291
2292
+ if options .emulator is not None :
2293
+ gyp_args += ['-Demulator_path=' + options .emulator ]
2294
+
2286
2295
if options .compile_commands_json :
2287
2296
gyp_args += ['-f' , 'compile_commands_json' ]
2288
2297
os .path .islink ('./compile_commands.json' ) and os .unlink ('./compile_commands.json' )
Original file line number Diff line number Diff line change 703
703
'<(SHARED_INTERMEDIATE_DIR)/node_snapshot.cc' ,
704
704
],
705
705
'action' : [
706
+ '<@(emulator)' ,
706
707
'<(node_mksnapshot_exec)' ,
707
708
'--build-snapshot' ,
708
709
'<(node_snapshot_main)' ,
722
723
'<(SHARED_INTERMEDIATE_DIR)/node_snapshot.cc' ,
723
724
],
724
725
'action' : [
726
+ '<@(emulator)' ,
725
727
'<@(_inputs)' ,
726
728
'<@(_outputs)' ,
727
729
],
1010
1012
'<(SHARED_INTERMEDIATE_DIR)/node_javascript.cc' ,
1011
1013
],
1012
1014
'action' : [
1015
+ '<@(emulator)' ,
1013
1016
'<(node_js2c_exec)' ,
1014
1017
'<@(_outputs)' ,
1015
1018
'lib' ,
1477
1480
'<(PRODUCT_DIR)/<(node_core_target_name).def' ,
1478
1481
],
1479
1482
'action' : [
1483
+ '<@(emulator)' ,
1480
1484
'<(PRODUCT_DIR)/gen_node_def.exe' ,
1481
1485
'<@(_inputs)' ,
1482
1486
'<@(_outputs)' ,
Original file line number Diff line number Diff line change 112
112
'<@(torque_outputs_inc)' ,
113
113
],
114
114
'action' : [
115
+ '<@(emulator)' ,
115
116
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)torque<(EXECUTABLE_SUFFIX)' ,
116
117
'-o' , '<(SHARED_INTERMEDIATE_DIR)/torque-generated' ,
117
118
'-v8-root' , '<(V8_ROOT)' ,
232
233
'action' : [
233
234
'<(python)' ,
234
235
'<(V8_ROOT)/tools/run.py' ,
236
+ '<@(emulator)' ,
235
237
'<@(_inputs)' ,
236
238
'<@(_outputs)' ,
237
239
],
453
455
}],
454
456
],
455
457
'action' : [
458
+ '<@(emulator)' ,
456
459
'>@(_inputs)' ,
457
460
'>@(mksnapshot_flags)' ,
458
461
],
1842
1845
'action' : [
1843
1846
'<(python)' ,
1844
1847
'<(V8_ROOT)/tools/run.py' ,
1848
+ '<@(emulator)' ,
1845
1849
'<@(_inputs)' ,
1846
1850
'<@(_outputs)' ,
1847
1851
],
You can’t perform that action at this time.
0 commit comments