Skip to content

Commit 9096975

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Test Pyodide builds
1 parent 1a16cdc commit 9096975

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_sdl.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ def get_emscripten_include_dir() -> Path:
307307
except Exception:
308308
if "PYODIDE" in os.environ:
309309
emcc_stdout = subprocess.check_output(
310-
["emcc", "-sRELOCATABLE=1", "-fPIC", "--use-port=sdl3", "--cflags"], text=True
310+
["emcc", "-sRELOCATABLE=1", "-fPIC", "--use-port=sdl3", "--cflags"],
311+
text=True,
312+
env={**os.environ, "CFLAGS": "-fPIC", "CXXFLAGS": "-fPIC", "LDFLAGS": "-fPIC"},
311313
)
312314
print(f"""EMCC CFLAGS: {emcc_stdout}""")
313315
matches = re.findall(r"--sysroot=(\S+)", emcc_stdout)

0 commit comments

Comments
 (0)