@@ -425,12 +425,12 @@ parser.add_option('--without-perfctr',
425
425
# Dummy option for backwards compatibility
426
426
parser .add_option ('--with-snapshot' ,
427
427
action = 'store_true' ,
428
- dest = 'unused_with_snapshot ' ,
428
+ dest = 'with_snapshot ' ,
429
429
help = optparse .SUPPRESS_HELP )
430
430
431
431
parser .add_option ('--without-snapshot' ,
432
432
action = 'store_true' ,
433
- dest = 'without_snapshot ' ,
433
+ dest = 'unused_without_snapshot ' ,
434
434
help = optparse .SUPPRESS_HELP )
435
435
436
436
parser .add_option ('--without-ssl' ,
@@ -813,7 +813,7 @@ def configure_node(o):
813
813
cross_compiling = (options .cross_compiling
814
814
if options .cross_compiling is not None
815
815
else target_arch != host_arch )
816
- want_snapshots = not options .without_snapshot
816
+ want_snapshots = 1 if options .with_snapshot else 0
817
817
o ['variables' ]['want_separate_host_toolset' ] = int (
818
818
cross_compiling and want_snapshots )
819
819
o ['variables' ]['want_separate_host_toolset_mkpeephole' ] = int (
@@ -960,7 +960,7 @@ def configure_v8(o):
960
960
o ['variables' ]['v8_optimized_debug' ] = 0 # Compile with -O0 in debug builds.
961
961
o ['variables' ]['v8_random_seed' ] = 0 # Use a random seed for hash tables.
962
962
o ['variables' ]['v8_promise_internal_field_count' ] = 1 # Add internal field to promises for async hooks.
963
- o ['variables' ]['v8_use_snapshot' ] = 'false' if options .without_snapshot else 'true'
963
+ o ['variables' ]['v8_use_snapshot' ] = b ( options .with_snapshot )
964
964
o ['variables' ]['v8_trace_maps' ] = 1 if options .trace_maps else 0
965
965
o ['variables' ]['node_use_v8_platform' ] = b (not options .without_v8_platform )
966
966
o ['variables' ]['node_use_bundled_v8' ] = b (not options .without_bundled_v8 )
0 commit comments