Skip to content

Commit 5794e26

Browse files
committed
Add a meson.cross file for pyodide cross-build.
1 parent 568d91d commit 5794e26

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

bin/emscripten.meson.cross

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# compiler paths are omitted intentionally so pyodide-build can override them
2+
# with its pywasmcross wrappers.
3+
[binaries]
4+
exe_wrapper = 'node'
5+
pkgconfig = 'pkg-config'
6+
7+
[properties]
8+
needs_exe_wrapper = true
9+
skip_sanity_check = true
10+
11+
[host_machine]
12+
system = 'emscripten'
13+
cpu_family = 'wasm32'
14+
cpu = 'wasm'
15+
endian = 'little'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,4 @@ LDFLAGS = "-L$(pwd)/wasm-library-dir/lib -lflint -lmpfr -lgmp $LDFLAGS"
193193

194194
[tool.cibuildwheel.pyodide.config-settings]
195195
build-dir = "flint_wasm_build"
196-
setup-args = ["-Dflint_version_check=false"]
196+
setup-args = ["--cross-file=$PWD/bin/emscripten.meson.cross", "-Dflint_version_check=false"]

0 commit comments

Comments
 (0)