From 87bb647014724a48930065d2c236c6693b50ec3c Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 17 Dec 2025 15:10:50 -0800 Subject: [PATCH] Hard-code the location for the WASI SDK for the non-debug WASI workers Only run on Python 3.11 and 3.12 with WASI SDK 21. Hard-coding allows for symlinking `/opt/wasi-sdk` to WASI SDK 24 for Python 3.13. For Python 3.14 and later this is not a concern as `Tools/wasm/wasi` find the appropriate WASI SDK automatically in `/opt`. --- master/custom/factories.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/master/custom/factories.py b/master/custom/factories.py index b5a3e301..606a5603 100644 --- a/master/custom/factories.py +++ b/master/custom/factories.py @@ -889,7 +889,7 @@ def setup(self, parallel, branch, test_with_PTY=False, **kwargs): class Wasm32WasiCrossBuild(UnixCrossBuild): """wasm32-wasi builder - * WASI SDK >= 16 must be installed to default path /opt/wasi-sdk + * WASI SDK 21 must be installed at /opt/wasi-sdk-21.0 * wasmtime must be installed and on PATH """ @@ -924,6 +924,7 @@ def setup(self, parallel, branch, test_with_PTY=False, **kwargs): haltOnFailure=True, ) ) + self.compile_environ["WASI_SDK_PATH"] = "/opt/wasi-sdk-21.0" super().setup(parallel, branch, test_with_PTY=test_with_PTY, **kwargs)