Skip to content

Commit 51d69d2

Browse files
ofrobotsMylesBorins
authored andcommitted
build: disable V8 snapshots
PR-URL: https://github.com/nodejs/node-private/pull/84 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
1 parent b3185d7 commit 51d69d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

configure

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,12 @@ parser.add_option('--without-perfctr',
420420
# Dummy option for backwards compatibility
421421
parser.add_option('--with-snapshot',
422422
action='store_true',
423-
dest='unused_with_snapshot',
423+
dest='with_snapshot',
424424
help=optparse.SUPPRESS_HELP)
425425

426426
parser.add_option('--without-snapshot',
427427
action='store_true',
428-
dest='without_snapshot',
428+
dest='unused_without_snapshot',
429429
help=optparse.SUPPRESS_HELP)
430430

431431
parser.add_option('--without-ssl',
@@ -808,7 +808,7 @@ def configure_node(o):
808808
cross_compiling = (options.cross_compiling
809809
if options.cross_compiling is not None
810810
else target_arch != host_arch)
811-
want_snapshots = not options.without_snapshot
811+
want_snapshots = 1 if options.with_snapshot else 0
812812
o['variables']['want_separate_host_toolset'] = int(
813813
cross_compiling and want_snapshots)
814814
o['variables']['want_separate_host_toolset_mkpeephole'] = int(
@@ -955,7 +955,7 @@ def configure_v8(o):
955955
o['variables']['v8_optimized_debug'] = 0 # Compile with -O0 in debug builds.
956956
o['variables']['v8_random_seed'] = 0 # Use a random seed for hash tables.
957957
o['variables']['v8_promise_internal_field_count'] = 1 # Add internal field to promises for async hooks.
958-
o['variables']['v8_use_snapshot'] = 'false' if options.without_snapshot else 'true'
958+
o['variables']['v8_use_snapshot'] = b(options.with_snapshot)
959959
o['variables']['node_use_v8_platform'] = b(not options.without_v8_platform)
960960
o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8)
961961
o['variables']['force_dynamic_crt'] = 1 if options.shared else 0

0 commit comments

Comments
 (0)