summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Ijaz Sheikh <ofrobots@google.com>2017-06-01 17:55:42 -0700
committerMyles Borins <mylesborins@google.com>2017-07-11 00:13:25 +0100
commit9d51bdc9d43b7be89519c9dc0bc7a0e49ffbdc04 (patch)
tree72fee2ce794f0ae958ffc8bee55b7be382c023cb
parentd6969a717f7368b7faae97140dccede81f345b73 (diff)
downloadnode-new-9d51bdc9d43b7be89519c9dc0bc7a0e49ffbdc04.tar.gz
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>
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 6eb106f92d..dc7b9a2660 100755
--- a/configure
+++ b/configure
@@ -385,12 +385,12 @@ parser.add_option('--without-perfctr',
# Dummy option for backwards compatibility
parser.add_option('--with-snapshot',
action='store_true',
- dest='unused_with_snapshot',
+ dest='with_snapshot',
help=optparse.SUPPRESS_HELP)
parser.add_option('--without-snapshot',
action='store_true',
- dest='without_snapshot',
+ dest='unused_without_snapshot',
help=optparse.SUPPRESS_HELP)
parser.add_option('--without-ssl',
@@ -754,7 +754,7 @@ def configure_node(o):
cross_compiling = (options.cross_compiling
if options.cross_compiling is not None
else target_arch != host_arch)
- want_snapshots = not options.without_snapshot
+ want_snapshots = 1 if options.with_snapshot else 0
o['variables']['want_separate_host_toolset'] = int(
cross_compiling and want_snapshots)
@@ -898,7 +898,7 @@ def configure_v8(o):
o['variables']['v8_no_strict_aliasing'] = 1 # Work around compiler bugs.
o['variables']['v8_optimized_debug'] = 0 # Compile with -O0 in debug builds.
o['variables']['v8_random_seed'] = 0 # Use a random seed for hash tables.
- o['variables']['v8_use_snapshot'] = 'false' if options.without_snapshot else 'true'
+ o['variables']['v8_use_snapshot'] = b(options.with_snapshot)
o['variables']['node_enable_d8'] = b(options.enable_d8)
o['variables']['force_dynamic_crt'] = 1 if options.shared else 0
def configure_openssl(o):