summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 1b3ff0162f..efb92701e2 100755
--- a/configure
+++ b/configure
@@ -491,6 +491,12 @@ parser.add_option('--without-snapshot',
dest='without_snapshot',
help=optparse.SUPPRESS_HELP)
+parser.add_option('--code-cache-path',
+ action='store',
+ dest='code_cache_path',
+ help='Use a file generated by tools/generate_code_cache.js to compile the'
+ ' code cache for builtin modules into the binary')
+
parser.add_option('--without-ssl',
action='store_true',
dest='without_ssl',
@@ -983,6 +989,8 @@ def configure_node(o):
o['variables']['debug_nghttp2'] = 'false'
o['variables']['node_no_browser_globals'] = b(options.no_browser_globals)
+ if options.code_cache_path:
+ o['variables']['node_code_cache_path'] = options.code_cache_path
o['variables']['node_shared'] = b(options.shared)
node_module_version = getmoduleversion.get_version()