aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2024-12-18 21:01:12 -0800
committerGitHub <noreply@github.com>2024-12-19 05:01:12 +0000
commitfcf996196b22becc0c8e4826d3f2b8f285cf875a (patch)
treefdb825edacc1d641dd280e12b243df2c90f3d1fc /python/servo/command_base.py
parente2a0ac07ff2aeece5485f491210e77ebc2af127c (diff)
downloadservo-fcf996196b22becc0c8e4826d3f2b8f285cf875a.tar.gz
servo-fcf996196b22becc0c8e4826d3f2b8f285cf875a.zip
Reapply "Fix mozjs build on Windows (#34680)" (#34693)
This reverts commit bc0c8366f82ab8b8651c2346fbadcfea900ca789, relanding commit 11424f90b3cb0fe5688fce68139744f919c5be21. Reason: it wasn't the cause behind #34688. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 1f8b6818c22..59b36e8f688 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -832,6 +832,10 @@ class CommandBase(object):
if with_debug_assertions or self.config["build"]["debug-assertions"]:
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C debug_assertions"
+ # mozjs gets its Python from `env['PYTHON3']`, which defaults to `python3`,
+ # but uv venv on Windows only provides a `python`, not `python3`.
+ env['PYTHON3'] = "python"
+
return call(["cargo", command] + args + cargo_args, env=env, verbose=verbose)
def android_adb_path(self, env):