Skip to content

Commit

Permalink
Fix WASI buildbots to support the new default target (#556)
Browse files Browse the repository at this point in the history
Brand everything as being for WASI preview1
  • Loading branch information
brettcannon authored Nov 8, 2024
1 parent a4df363 commit 62ba4ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions master/custom/builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
WindowsARM64Build,
WindowsARM64ReleaseBuild,
Wasm32WasiCrossBuild,
Wasm32WasiDebugBuild,
Wasm32WasiPreview1DebugBuild,
IOSARM64SimulatorBuild,
AndroidBuild,
ValgrindBuild,
Expand Down Expand Up @@ -133,7 +133,7 @@

# WASI
("wasm32-wasi Non-Debug", "bcannon-wasi", Wasm32WasiCrossBuild),
("wasm32-wasi", "bcannon-wasi", Wasm32WasiDebugBuild),
("wasm32-wasi", "bcannon-wasi", Wasm32WasiPreview1DebugBuild),
]


Expand Down
7 changes: 4 additions & 3 deletions master/custom/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ def setup(self, parallel, branch, test_with_PTY=False, **kwargs):
super().setup(parallel, branch, test_with_PTY=test_with_PTY, **kwargs)


class _Wasm32WasiBuild(UnixBuild):
class _Wasm32WasiPreview1Build(UnixBuild):
"""Build Python for wasm32-wasi using Tools/wasm/wasi.py."""
buildersuffix = ".wasi"
factory_tags = ["wasm", "wasi"]
Expand All @@ -886,7 +886,8 @@ def __init__(self, source, *, extra_tags=[], **kwargs):

def setup(self, parallel, branch, test_with_PTY=False, **kwargs):
wasi_py = "Tools/wasm/wasi.py"
host_path = "build/cross-build/wasm32-wasi"
host_triple = "wasm32-wasip1"
host_path = f"build/cross-build/{host_triple}"

# Build Python
build_configure = ["python3", wasi_py, "configure-build-python"]
Expand Down Expand Up @@ -968,7 +969,7 @@ def setup(self, parallel, branch, test_with_PTY=False, **kwargs):

# Preventing this from running on versions older than 3.13 is managed in
# master.cfg.
class Wasm32WasiDebugBuild(_Wasm32WasiBuild):
class Wasm32WasiPreview1DebugBuild(_Wasm32WasiPreview1Build):
append_suffix = ".debug"
pydebug = True
testFlags = ["-u-cpu"]
Expand Down

0 comments on commit 62ba4ea

Please sign in to comment.