Skip to content

Commit 46414cb

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Test Pyodide builds
1 parent 4396e66 commit 46414cb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build_sdl.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def get_emscripten_include_dir() -> Path:
271271
blank_source.write_text("")
272272
subprocess.run(["emcc", "--use-port=sdl3", blank_source], check=True)
273273

274-
check_sdl_version()
274+
# check_sdl_version()
275275

276276
SDL_PARSE_PATH: Path | None = None
277277
SDL_BUNDLE_PATH: Path | None = None
@@ -404,12 +404,11 @@ def get_cdef() -> tuple[str, dict[str, str]]:
404404
extra_link_args += ["-rpath", "/usr/local/opt/llvm/lib/"]
405405

406406
if "PYODIDE" in os.environ:
407-
print(f"""EMCC CFLAGS: {subprocess.check_output(["emcc", "--use-port=sdl3", "--cflags"], text=True)!r}""")
408407
extra_compile_args += ["--use-port=sdl3"]
409408
extra_link_args += ["--use-port=sdl3"]
410409
cmake_cmd = ("cmake", "--find-package", "-D", "NAME=SDL3", "-D", "COMPILER_ID=GNU", "-D", "LANGUAGE=C")
411-
extra_compile_args += subprocess.check_output((*cmake_cmd, "-DMODE=COMPILE"), text=True).strip().split()
412-
extra_link_args += subprocess.check_output((*cmake_cmd, "-DMODE=LINK"), text=True).strip().split()
410+
extra_compile_args += subprocess.check_output((*cmake_cmd, "-D", "MODE=COMPILE"), text=True).strip().split()
411+
extra_link_args += subprocess.check_output((*cmake_cmd, "-D", "MODE=LINK"), text=True).strip().split()
413412
print(f"{extra_compile_args=}")
414413
print(f"{extra_link_args=}")
415414
elif sys.platform not in ["win32", "darwin"]:

0 commit comments

Comments
 (0)