Skip to content

Commit eb79194

Browse files
committed
fixup! fixup! fixup! fixup! Parse SDL headers from EMSDK during Pyodide builds
1 parent 110f3a2 commit eb79194

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build_sdl.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ def on_directive_handle(
261261

262262
SDL_INCLUDE: Path
263263
if "PYODIDE" in os.environ:
264-
SDL_INCLUDE = Path(os.environ["EMSDK"], "include")
264+
logger.info(f"{os.environ.get('EMSDK')}=")
265+
logger.info(f"{os.environ.get('EMSCRIPTEN')}=")
266+
logger.info(f"{os.environ.get('EMSCRIPTEN_ROOT')}=")
267+
SDL_INCLUDE = Path(os.environ["EMSCRIPTEN"], "include")
265268
elif sys.platform == "win32" and SDL_PARSE_PATH is not None:
266269
SDL_INCLUDE = SDL_PARSE_PATH / "include"
267270
elif sys.platform == "darwin" and SDL_PARSE_PATH is not None:

0 commit comments

Comments
 (0)