aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
authorDelan Azabani <dazabani@igalia.com>2024-12-18 20:57:29 +0800
committerGitHub <noreply@github.com>2024-12-18 12:57:29 +0000
commit11424f90b3cb0fe5688fce68139744f919c5be21 (patch)
tree4908abd53a6189f4b581668bce00c29235f1e6bf /python/servo
parent3a4e5d4245d3d4a4c29a03fc50d78ed1eb0f0c67 (diff)
downloadservo-11424f90b3cb0fe5688fce68139744f919c5be21.tar.gz
servo-11424f90b3cb0fe5688fce68139744f919c5be21.zip
Fix mozjs build on Windows (#34680)
Signed-off-by: Delan Azabani <dazabani@igalia.com>
Diffstat (limited to 'python/servo')
-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):