Skip to content

Commit ff68f2a

Browse files
committed
Changes for Pyodide
1 parent b4046b3 commit ff68f2a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

mesonpy/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,12 @@ def _configure(self, reconfigure: bool = False) -> None:
491491
setup_args.insert(0, '--reconfigure')
492492

493493
try:
494+
pyodide_root = pathlib.Path(os.environ['PYODIDE_ROOT'])
495+
cross_file = str(pyodide_root / "tools/emscripten.meson.cross")
494496
self._meson(
495497
'setup',
496-
f'--native-file={os.fspath(self._meson_native_file)}',
498+
# f'--native-file={os.fspath(self._meson_native_file)}',
499+
f"--cross-file={cross_file}",
497500
# TODO: Allow configuring these arguments
498501
'-Ddebug=false',
499502
'-Doptimization=2',

0 commit comments

Comments
 (0)