summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-04-19 09:43:02 -0400
committerRefael Ackermann <refack@gmail.com>2019-04-22 14:48:50 -0400
commit5aaf666b3b82a66485bea6a6b59fbfc838192e2f (patch)
tree7311dbad032093a9bd0a4a7cb8b5f7678a60cf43 /configure.py
parent49d3d11ba7975b2c6df4ecab55b4619da46fcb95 (diff)
downloadandroid-node-v8-5aaf666b3b82a66485bea6a6b59fbfc838192e2f.tar.gz
android-node-v8-5aaf666b3b82a66485bea6a6b59fbfc838192e2f.tar.bz2
android-node-v8-5aaf666b3b82a66485bea6a6b59fbfc838192e2f.zip
build: improve embedded code-cache detection
PR-URL: https://github.com/nodejs/node/pull/27311 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index a3a412e3a7..1a0819e741 100755
--- a/configure.py
+++ b/configure.py
@@ -1051,7 +1051,9 @@ def configure_node(o):
o['variables']['debug_nghttp2'] = 'false'
o['variables']['node_no_browser_globals'] = b(options.no_browser_globals)
- o['variables']['node_code_cache_path'] = 'yes'
+ # TODO(refack): fix this when implementing embedded code-cache when cross-compiling.
+ if o['variables']['want_separate_host_toolset'] == 0:
+ o['variables']['node_code_cache_path'] = 'yes'
o['variables']['node_shared'] = b(options.shared)
node_module_version = getmoduleversion.get_version()