summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index a4c4d26987..9327d6e5f5 100755
--- a/configure.py
+++ b/configure.py
@@ -2005,6 +2005,10 @@ else:
if options.compile_commands_json:
gyp_args += ['-f', 'compile_commands_json']
+# override the variable `python` defined in common.gypi
+if bin_override is not None:
+ gyp_args += ['-Dpython=' + sys.executable]
+
# pass the leftover positional arguments to GYP
gyp_args += args