Skip to content

Commit bd51213

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! Test Pyodide builds
1 parent b3596b3 commit bd51213

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

build_sdl.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -406,12 +406,9 @@ def get_cdef() -> tuple[str, dict[str, str]]:
406406

407407
extra_compile_args += ["--use-port=sdl3"]
408408
extra_link_args += ["--use-port=sdl3"]
409-
extra_compile_args += (
410-
subprocess.check_output(["cmake", "--find-package", "-DNAME=SDL3", "-DMODE=COMPILE"], text=True).strip().split()
411-
)
412-
extra_link_args += (
413-
subprocess.check_output(["cmake", "--find-package", "-DNAME=SDL3", "-DMODE=LINK"], text=True).strip().split()
414-
)
409+
cmake_cmd = ("cmake", "--find-package", "-D", "NAME=SDL3", "-D", "COMPILER_ID=GNU", "-D", "LANGUAGE=C")
410+
extra_compile_args += subprocess.check_output((*cmake_cmd, "-DMODE=COMPILE"), text=True).strip().split()
411+
extra_link_args += subprocess.check_output((*cmake_cmd, "-DMODE=LINK"), text=True).strip().split()
415412
print(f"{extra_compile_args=}")
416413
print(f"{extra_link_args=}")
417414
elif sys.platform not in ["win32", "darwin"]:

0 commit comments

Comments
 (0)