Skip to content

Commit 3ead40a

Browse files
committed
fixup! Test Pyodide builds
1 parent 50f2bcc commit 3ead40a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build_sdl.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,12 @@ def get_emscripten_include_dir() -> Path:
296296
try:
297297
out = subprocess.check_output(["pkg-config", "sdl3", "--cflags"], universal_newlines=True)
298298
except Exception:
299+
cmake_out = subprocess.run(
300+
(*CMAKE_FIND_SDL_CMD, "-D", "MODE=COMPILE"), check=False, text=True, stdout=subprocess.PIPE
301+
)
302+
print(f"{cmake_out.stdout=}")
303+
cmake_out.check_returncode()
304+
299305
out = subprocess.check_output((*CMAKE_FIND_SDL_CMD, "-D", "MODE=COMPILE"), text=True)
300306
matches = re.findall(r"-I(\S+)", out)
301307
if not matches:

0 commit comments

Comments
 (0)