@@ -294,15 +294,15 @@ parser.add_option('--without-perfctr',
294294 dest = 'without_perfctr' ,
295295 help = 'build without performance counters' )
296296
297+ # Dummy option for backwards compatibility
297298parser .add_option ('--with-snapshot' ,
298299 action = 'store_true' ,
299- dest = 'with_snapshot ' ,
300+ dest = 'unused_with_snapshot ' ,
300301 help = optparse .SUPPRESS_HELP )
301302
302- # Dummy option for backwards compatibility.
303303parser .add_option ('--without-snapshot' ,
304304 action = 'store_true' ,
305- dest = 'unused_without_snapshot ' ,
305+ dest = 'without_snapshot ' ,
306306 help = optparse .SUPPRESS_HELP )
307307
308308parser .add_option ('--without-ssl' ,
@@ -579,10 +579,6 @@ def configure_arm(o):
579579 o ['variables' ]['arm_fpu' ] = 'vfpv3'
580580 o ['variables' ]['arm_version' ] = '7'
581581
582- # Print warning when snapshot is enabled and building on armv6
583- if is_arch_armv6 () and options .with_snapshot :
584- warn ('when building on ARMv6, don\' t use --with-snapshot' )
585-
586582
587583def configure_mips (o ):
588584 can_use_fpu_instructions = (options .mips_float_abi != 'soft' )
@@ -604,10 +600,10 @@ def configure_node(o):
604600 o ['variables' ]['host_arch' ] = host_arch
605601 o ['variables' ]['target_arch' ] = target_arch
606602
607- if target_arch != host_arch and options . with_snapshot :
608- o [ 'variables' ][ 'want_separate_host_toolset' ] = 1
609- else :
610- o [ 'variables' ][ 'want_separate_host_toolset' ] = 0
603+ cross_compiling = target_arch != host_arch
604+ want_snapshots = not options . without_snapshot
605+ o [ 'variables' ][ 'want_separate_host_toolset' ] = int (
606+ cross_compiling and want_snapshots )
611607
612608 if target_arch == 'arm' :
613609 configure_arm (o )
@@ -713,7 +709,7 @@ def configure_v8(o):
713709 o ['variables' ]['v8_no_strict_aliasing' ] = 1 # Work around compiler bugs.
714710 o ['variables' ]['v8_optimized_debug' ] = 0 # Compile with -O0 in debug builds.
715711 o ['variables' ]['v8_random_seed' ] = 0 # Use a random seed for hash tables.
716- o ['variables' ]['v8_use_snapshot' ] = b ( options .with_snapshot )
712+ o ['variables' ]['v8_use_snapshot' ] = 0 if options .without_snapshot else 1
717713
718714def configure_openssl (o ):
719715 o ['variables' ]['node_use_openssl' ] = b (not options .without_ssl )
0 commit comments