Skip to content

Commit 414d495

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! Test Pyodide builds
1 parent f2085e3 commit 414d495

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

build_sdl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def get_cdef() -> tuple[str, dict[str, str]]:
392392

393393
if "PYODIDE" in os.environ:
394394
extra_compile_args += ["--use-port=sdl3"]
395-
extra_link_args += ["--use-port=sdl3"]
395+
extra_link_args += ["--use-port=sdl3", "-lSDL3"]
396396
elif sys.platform not in ["win32", "darwin"]:
397397
# Use sdl-config to link to SDL on Linux.
398398
extra_compile_args += (

tcod/cffi.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

2121
def verify_dependencies() -> None:
2222
"""Try to make sure dependencies exist on this system."""
23-
if sys.platform == "emscripten":
24-
return
2523
ffi_check = cffi.FFI()
2624
ffi_check.cdef(
2725
"""
@@ -58,8 +56,7 @@ def get_sdl_version() -> str:
5856
verify_dependencies()
5957
from tcod._libtcod import ffi, lib # noqa: E402
6058

61-
if sys.platform != "emscripten":
62-
__sdl_version__ = get_sdl_version()
59+
__sdl_version__ = get_sdl_version()
6360

6461

6562
@ffi.def_extern() # type: ignore[misc]

0 commit comments

Comments
 (0)