summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2016-07-05 16:18:38 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2016-07-09 09:24:54 +0200
commit0a9f27b0eed7e79846365b6a26f0475f2447feb6 (patch)
tree034f58fc41437f18229f1b43857cafe1be1b0eeb /configure
parent990c9683e929de9cb84793f14ee3ca39cb855d17 (diff)
downloadandroid-node-v8-0a9f27b0eed7e79846365b6a26f0475f2447feb6.tar.gz
android-node-v8-0a9f27b0eed7e79846365b6a26f0475f2447feb6.tar.bz2
android-node-v8-0a9f27b0eed7e79846365b6a26f0475f2447feb6.zip
build: add --enable-d8 configure option
Add an option to the configure script for building d8. Useful for testing V8 standalone. PR-URL: https://github.com/nodejs/node/pull/7538 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure15
1 files changed, 13 insertions, 2 deletions
diff --git a/configure b/configure
index 879c12b496..b23bfc36a2 100755
--- a/configure
+++ b/configure
@@ -248,6 +248,11 @@ parser.add_option('--release-urlbase',
'`sourceUrl` and `headersUrl`. When compiling a release build, this '
'will default to https://nodejs.org/download/release/')
+parser.add_option('--enable-d8',
+ action='store_true',
+ dest='enable_d8',
+ help=optparse.SUPPRESS_HELP) # Unsupported, undocumented.
+
parser.add_option('--v8-options',
action='store',
dest='v8_options',
@@ -835,8 +840,6 @@ def configure_node(o):
o['variables']['node_no_browser_globals'] = b(options.no_browser_globals)
o['variables']['node_shared'] = b(options.shared)
- o['variables']['node_use_v8_platform'] = b(not options.without_v8_platform)
- o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8)
o['variables']['node_module_version'] = int(getmoduleversion.get_version())
if options.linked_module:
@@ -884,6 +887,14 @@ def configure_v8(o):
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']['node_use_v8_platform'] = b(not options.without_v8_platform)
+ o['variables']['node_use_bundled_v8'] = b(not options.without_bundled_v8)
+ o['variables']['node_enable_d8'] = b(options.enable_d8)
+ if options.enable_d8:
+ o['variables']['test_isolation_mode'] = 'noop' # Needed by d8.gyp.
+ if options.without_bundled_v8 and options.enable_d8:
+ raise Exception('--enable-d8 is incompatible with --without-bundled-v8.')
+
def configure_openssl(o):
o['variables']['node_use_openssl'] = b(not options.without_ssl)