Skip to content

Commit a7476a0

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

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
@@ -393,7 +393,7 @@ def get_cdef() -> tuple[str, dict[str, str]]:
393393
sdl_cdef = sdl_cdef.replace(f"}} {name};", f"...;}} {name};")
394394

395395
# Remove variable arg functions
396-
RE_VA_ARG_FUNC = re.compile(r"^.*?\([^()]*\.\.\.*\)\s*;\s*$", re.MULTILINE)
396+
RE_VA_ARG_FUNC = re.compile(r"^.*?\([^()]*\.\.\.\)\s*;\s*$", re.MULTILINE)
397397
sdl_cdef = RE_VA_ARG_FUNC.sub("", sdl_cdef)
398398

399399
return sdl_cdef + EXTRA_CDEF, parser.known_string_defines

0 commit comments

Comments
 (0)