Skip to content

Commit 1756b4b

Browse files
committed
fixup! Build Pyodide wheel
1 parent 0ae559f commit 1756b4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_libtcod.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ def walk_sources(directory: str) -> Iterator[str]:
158158

159159
extra_compile_args: list[str] = []
160160
extra_link_args: list[str] = []
161-
if "PYODIDE" not in os.environ:
161+
if "PYODIDE" in os.environ:
162+
extra_compile_args.append("--use-port=sdl3")
163+
else:
162164
extra_compile_args.extend(build_sdl.extra_compile_args)
163165
extra_link_args.extend(build_sdl.extra_link_args)
164166

0 commit comments

Comments
 (0)