Skip to content

Commit bf077c7

Browse files
committed
fixup! fixup! fixup! fixup! Test Pyodide builds
1 parent 03b5e30 commit bf077c7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tcod/cffi.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@
1717

1818
REQUIRED_SDL_VERSION = (3, 2, 0)
1919

20-
ffi_check = cffi.FFI()
21-
ffi_check.cdef(
22-
"""
23-
int SDL_GetVersion(void);
24-
"""
25-
)
26-
2720

2821
def verify_dependencies() -> None:
2922
"""Try to make sure dependencies exist on this system."""
23+
if sys.platform == "emscripten":
24+
return
25+
ffi_check = cffi.FFI()
26+
ffi_check.cdef(
27+
"""
28+
int SDL_GetVersion(void);
29+
"""
30+
)
3031
if sys.platform == "win32":
3132
lib_test: Any = ffi_check.dlopen("SDL3.dll") # Make sure SDL3.dll is here.
3233
int_version = lib_test.SDL_GetVersion() # Need to check this version.

0 commit comments

Comments
 (0)