Skip to content

Commit 9a922c6

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Parse SDL headers from EMSDK during Pyodide builds
1 parent 89cc447 commit 9a922c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_sdl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,9 @@ def on_directive_handle(
261261

262262
SDL_INCLUDE: Path
263263
if "PYODIDE" in os.environ:
264+
# None of the EMSDK environment variables exist! Search PATH for Emscripten as a workaround
264265
for path in os.environ["PATH"].split(os.pathsep):
265-
if Path(path, "../upstream/emscripten").exists():
266+
if Path(path).match("upstream/emscripten"):
266267
SDL_INCLUDE = Path(path)
267268
break
268269
else:

0 commit comments

Comments
 (0)