Skip to content

Commit 7810cc5

Browse files
authored
Hard-code the location for the WASI SDK for the non-debug WASI workers (#651)
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`.
1 parent 9fd9f25 commit 7810cc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

master/custom/factories.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ def setup(self, parallel, branch, test_with_PTY=False, **kwargs):
889889
class Wasm32WasiCrossBuild(UnixCrossBuild):
890890
"""wasm32-wasi builder
891891
892-
* WASI SDK >= 16 must be installed to default path /opt/wasi-sdk
892+
* WASI SDK 21 must be installed at /opt/wasi-sdk-21.0
893893
* wasmtime must be installed and on PATH
894894
"""
895895

@@ -924,6 +924,7 @@ def setup(self, parallel, branch, test_with_PTY=False, **kwargs):
924924
haltOnFailure=True,
925925
)
926926
)
927+
self.compile_environ["WASI_SDK_PATH"] = "/opt/wasi-sdk-21.0"
927928
super().setup(parallel, branch, test_with_PTY=test_with_PTY, **kwargs)
928929

929930

0 commit comments

Comments
 (0)