build: make --without-snapshot imply --without-node-snapshot

PR-URL: https://github.com/nodejs/node/pull/29294
Fixes: https://github.com/nodejs/node/issues/29243
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Joyee Cheung 2019-08-24 22:52:15 +08:00 committed by Daniel Bevenius
parent bfa2683eb6
commit f96f9fbe31

View File

@ -969,7 +969,8 @@ def configure_node(o):
cross_compiling and want_snapshots) cross_compiling and want_snapshots)
if not options.without_node_snapshot: if not options.without_node_snapshot:
o['variables']['node_use_node_snapshot'] = b(not cross_compiling) o['variables']['node_use_node_snapshot'] = b(
not cross_compiling and want_snapshots)
else: else:
o['variables']['node_use_node_snapshot'] = 'false' o['variables']['node_use_node_snapshot'] = 'false'