Skip to content

Commit 0c1bbbb

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Test Pyodide builds
1 parent a7476a0 commit 0c1bbbb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

build_libtcod.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ def walk_sources(directory: str) -> Iterator[str]:
207207
],
208208
}
209209

210-
# if sys.platform == "win32" and "--compiler=mingw32" not in sys.argv:
211-
# extra_compile_args.extend(MSVC_CFLAGS[tdl_build])
212-
# extra_link_args.extend(MSVC_LDFLAGS[tdl_build])
213-
# else:
214-
# extra_compile_args.extend(GCC_CFLAGS[tdl_build])
215-
# extra_link_args.extend(GCC_CFLAGS[tdl_build])
210+
if sys.platform == "win32" and "--compiler=mingw32" not in sys.argv:
211+
extra_compile_args.extend(MSVC_CFLAGS[tdl_build])
212+
extra_link_args.extend(MSVC_LDFLAGS[tdl_build])
213+
else:
214+
extra_compile_args.extend(GCC_CFLAGS[tdl_build])
215+
extra_link_args.extend(GCC_CFLAGS[tdl_build])
216216

217217
ffi = FFI()
218218
sdl_cdef, sdl_strings = build_sdl.get_cdef()

build_sdl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def get_cdef() -> tuple[str, dict[str, str]]:
407407
library_dirs: list[str] = []
408408

409409
if "PYODIDE" in os.environ:
410-
pass
410+
libraries += ["SDL3"]
411411
elif sys.platform == "darwin":
412412
extra_link_args += ["-framework", "SDL3"]
413413
else:

0 commit comments

Comments
 (0)