@@ -294,15 +294,15 @@ parser.add_option('--without-perfctr',
294
294
dest = 'without_perfctr' ,
295
295
help = 'build without performance counters' )
296
296
297
+ # Dummy option for backwards compatibility
297
298
parser .add_option ('--with-snapshot' ,
298
299
action = 'store_true' ,
299
- dest = 'with_snapshot ' ,
300
+ dest = 'unused_with_snapshot ' ,
300
301
help = optparse .SUPPRESS_HELP )
301
302
302
- # Dummy option for backwards compatibility.
303
303
parser .add_option ('--without-snapshot' ,
304
304
action = 'store_true' ,
305
- dest = 'unused_without_snapshot ' ,
305
+ dest = 'without_snapshot ' ,
306
306
help = optparse .SUPPRESS_HELP )
307
307
308
308
parser .add_option ('--without-ssl' ,
@@ -579,10 +579,6 @@ def configure_arm(o):
579
579
o ['variables' ]['arm_fpu' ] = 'vfpv3'
580
580
o ['variables' ]['arm_version' ] = '7'
581
581
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
-
586
582
587
583
def configure_mips (o ):
588
584
can_use_fpu_instructions = (options .mips_float_abi != 'soft' )
@@ -604,10 +600,10 @@ def configure_node(o):
604
600
o ['variables' ]['host_arch' ] = host_arch
605
601
o ['variables' ]['target_arch' ] = target_arch
606
602
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 )
611
607
612
608
if target_arch == 'arm' :
613
609
configure_arm (o )
@@ -713,7 +709,7 @@ def configure_v8(o):
713
709
o ['variables' ]['v8_no_strict_aliasing' ] = 1 # Work around compiler bugs.
714
710
o ['variables' ]['v8_optimized_debug' ] = 0 # Compile with -O0 in debug builds.
715
711
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
717
713
718
714
def configure_openssl (o ):
719
715
o ['variables' ]['node_use_openssl' ] = b (not options .without_ssl )
0 commit comments