summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorHitesh Kanwathirtha <hiteshk@microsoft.com>2017-10-20 20:19:46 -0400
committerRefael Ackermann <refack@gmail.com>2017-10-26 17:29:37 -0400
commit90640f7bf355bb2cec3cf90f12ac28741eb68420 (patch)
tree3f5eb0491c18ba24da84f1a3f1b67fef8b71b12a /configure
parent75f1087f49698903a24cca55939e472ad34d2273 (diff)
downloadandroid-node-v8-90640f7bf355bb2cec3cf90f12ac28741eb68420.tar.gz
android-node-v8-90640f7bf355bb2cec3cf90f12ac28741eb68420.tar.bz2
android-node-v8-90640f7bf355bb2cec3cf90f12ac28741eb68420.zip
build: skip bin override on windows
PR-URL: https://github.com/nodejs/node/pull/16460 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure b/configure
index 1e4cb4b3dd..9e04b03d4f 100755
--- a/configure
+++ b/configure
@@ -1351,7 +1351,9 @@ def configure_inspector(o):
o['variables']['v8_enable_inspector'] = 0 if disable_inspector else 1
-def get_bin_override():
+def make_bin_override():
+ if sys.platform == 'win32':
+ raise Exception('make_bin_override should not be called on win32.')
# If the system python is not the python we are running (which should be
# python 2), then create a directory with a symlink called `python` to our
# sys.executable. This directory will be prefixed to the PATH, so that
@@ -1460,7 +1462,8 @@ if options.prefix:
config = '\n'.join(map('='.join, config.iteritems())) + '\n'
-bin_override = get_bin_override()
+# On Windows there's no reason to search for a different python binary.
+bin_override = None if sys.platform == 'win32' else make_bin_override()
if bin_override:
config = 'export PATH:=' + bin_override + ':$(PATH)\n' + config