Skip to content

Commit 2c7b20f

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Test Pyodide builds
1 parent 9af33c3 commit 2c7b20f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

build_sdl.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,11 @@ def get_emscripten_include_dir() -> Path:
286286
elif sys.platform == "darwin" and SDL_PARSE_PATH is not None:
287287
SDL_INCLUDE = SDL_PARSE_PATH / "Versions/A/Headers"
288288
else: # Unix
289-
matches = re.findall(
290-
r"-I(\S+)",
291-
subprocess.check_output(["pkg-config", "sdl3", "--cflags"], universal_newlines=True)
292-
if "PYODIDE" not in os.environ
293-
else subprocess.check_output((*CMAKE_FIND_SDL_CMD, "-D", "MODE=COMPILE"), text=True),
294-
)
289+
try:
290+
out = subprocess.check_output((*CMAKE_FIND_SDL_CMD, "-D", "MODE=COMPILE"), text=True)
291+
except Exception:
292+
out = subprocess.check_output(["pkg-config", "sdl3", "--cflags"], universal_newlines=True)
293+
matches = re.findall(r"-I(\S+)", out)
295294
assert matches
296295

297296
for match in matches:

0 commit comments

Comments
 (0)