File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 421
421
dest = 'with_ltcg' ,
422
422
help = 'Use Link Time Code Generation. This feature is only available on Windows.' )
423
423
424
+ parser .add_option ('--with-node-snapshot' ,
425
+ action = 'store_true' ,
426
+ dest = 'with_node_snapshot' ,
427
+ help = 'Turn on V8 snapshot integration. Currently experimental.' )
428
+
424
429
intl_optgroup .add_option ('--download' ,
425
430
action = 'store' ,
426
431
dest = 'download_list' ,
@@ -928,6 +933,13 @@ def configure_node(o):
928
933
o ['variables' ]['want_separate_host_toolset' ] = int (
929
934
cross_compiling and want_snapshots )
930
935
936
+ if options .with_node_snapshot :
937
+ o ['variables' ]['node_use_node_snapshot' ] = 'true'
938
+ else :
939
+ # Default to false for now.
940
+ # TODO(joyeecheung): enable it once we fix the hashseed uniqueness
941
+ o ['variables' ]['node_use_node_snapshot' ] = 'false'
942
+
931
943
if target_arch == 'arm' :
932
944
configure_arm (o )
933
945
Original file line number Diff line number Diff line change 6
6
'node_use_dtrace%' : 'false' ,
7
7
'node_use_etw%' : 'false' ,
8
8
'node_no_browser_globals%' : 'false' ,
9
+ 'node_use_node_snapshot%' : 'false' ,
9
10
'node_use_v8_platform%' : 'true' ,
10
11
'node_use_bundled_v8%' : 'true' ,
11
12
'node_shared%' : 'false' ,
431
432
'src/node_code_cache_stub.cc'
432
433
],
433
434
}],
434
- ['want_separate_host_toolset==0 ' , {
435
+ ['node_use_node_snapshot=="true" ' , {
435
436
'dependencies' : [
436
437
'node_mksnapshot' ,
437
438
],
You can’t perform that action at this time.
0 commit comments