@@ -873,7 +873,8 @@ def __init__(self, source, *, extra_tags=[], **kwargs):
873873
874874 def setup (self , parallel , branch , test_with_PTY = False , ** kwargs ):
875875 wasi_py = "Tools/wasm/wasi.py"
876- host_path = "build/cross-build/wasm32-wasi"
876+ host_triple = "wasm32-wasip1"
877+ host_path = f"build/cross-build/{ host_triple } "
877878
878879 # Build Python
879880 build_configure = ["python3" , wasi_py , "configure-build-python" ]
@@ -897,13 +898,13 @@ def setup(self, parallel, branch, test_with_PTY=False, **kwargs):
897898 # Pydebug build automatically inferred from build Python.
898899 Configure (
899900 name = "Configure host Python" ,
900- command = ["python3" , wasi_py , "configure-host" ],
901+ command = ["python3" , wasi_py , "configure-host" , "--target-triple" , host_triple ],
901902 )
902903 )
903904 self .addStep (
904905 Compile (
905906 name = "Compile host Python" ,
906- command = ["python3" , wasi_py , "make-host" ],
907+ command = ["python3" , wasi_py , "make-host" , "--target-triple" , host_triple ],
907908 )
908909 )
909910
0 commit comments