Skip to content

Commit 37a9bb9

Browse files
committed
fixup! fixup! fixup! Test Pyodide builds
1 parent d206cc1 commit 37a9bb9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build_sdl.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,14 @@ def get_emscripten_include_dir() -> Path:
296296
try:
297297
out = subprocess.check_output(["pkg-config", "sdl3", "--cflags"], universal_newlines=True)
298298
except Exception:
299-
print(f"""EMCC CFLAGS: {subprocess.check_output(["emcc", "--use-port=sdl3", "--cflags"], text=True)!r}""")
299+
if "PYODIDE" in os.environ:
300+
emcc_stdout = subprocess.check_output(["emcc", "--use-port=sdl3", "--cflags"], text=True)
301+
print(f"""EMCC CFLAGS: {emcc_stdout}""")
302+
subprocess.run(
303+
("find", "/home/runner/.cache/cibuildwheel/emsdk-4.0.9/emsdk-4.0.9/upstream/emscripten/cache/sysroot"),
304+
check=False,
305+
)
306+
300307
cmake_out = subprocess.run(
301308
(*CMAKE_FIND_SDL_CMD, "-D", "MODE=COMPILE"), check=False, text=True, stdout=subprocess.PIPE
302309
)

0 commit comments

Comments
 (0)