@@ -385,12 +385,12 @@ parser.add_option('--without-perfctr',
385385# Dummy option for backwards compatibility
386386parser .add_option ('--with-snapshot' ,
387387 action = 'store_true' ,
388- dest = 'unused_with_snapshot ' ,
388+ dest = 'with_snapshot ' ,
389389 help = optparse .SUPPRESS_HELP )
390390
391391parser .add_option ('--without-snapshot' ,
392392 action = 'store_true' ,
393- dest = 'without_snapshot ' ,
393+ dest = 'unused_without_snapshot ' ,
394394 help = optparse .SUPPRESS_HELP )
395395
396396parser .add_option ('--without-ssl' ,
@@ -754,7 +754,7 @@ def configure_node(o):
754754 cross_compiling = (options .cross_compiling
755755 if options .cross_compiling is not None
756756 else target_arch != host_arch )
757- want_snapshots = not options .without_snapshot
757+ want_snapshots = 1 if options .with_snapshot else 0
758758 o ['variables' ]['want_separate_host_toolset' ] = int (
759759 cross_compiling and want_snapshots )
760760
@@ -898,7 +898,7 @@ def configure_v8(o):
898898 o ['variables' ]['v8_no_strict_aliasing' ] = 1 # Work around compiler bugs.
899899 o ['variables' ]['v8_optimized_debug' ] = 0 # Compile with -O0 in debug builds.
900900 o ['variables' ]['v8_random_seed' ] = 0 # Use a random seed for hash tables.
901- o ['variables' ]['v8_use_snapshot' ] = 'false' if options .without_snapshot else 'true'
901+ o ['variables' ]['v8_use_snapshot' ] = b ( options .with_snapshot )
902902 o ['variables' ]['node_enable_d8' ] = b (options .enable_d8 )
903903 o ['variables' ]['force_dynamic_crt' ] = 1 if options .shared else 0
904904def configure_openssl (o ):
0 commit comments