Update example cross files for emscripten/wasm

- Use more specific name (since not all wasm is emscripten-built)
- Add a 64-bit version
- Remove -sEXPORT_ALL (this is not flag that most user should need/want)

See https://github.com/emscripten-core/emscripten/pull/27478
This commit is contained in:
Sam Clegg
2026-08-02 16:16:03 -07:00
committed by Paolo Bonzini
parent cd852f14ec
commit 3bf88eb945
2 changed files with 19 additions and 7 deletions

View File

@@ -2,16 +2,10 @@
c = 'emcc'
cpp = 'em++'
ar = 'emar'
ranlib = 'emranlib'
exe_wrapper = 'node'
[built-in options]
c_args = []
c_link_args = ['-sEXPORT_ALL=1']
cpp_args = []
cpp_link_args = ['-sEXPORT_ALL=1']
[host_machine]
system = 'emscripten'
cpu_family = 'wasm32'
cpu = 'wasm32'

View File

@@ -0,0 +1,18 @@
[binaries]
c = 'emcc'
cpp = 'em++'
ar = 'emar'
ranlib = 'emranlib'
exe_wrapper = 'node'
[built-in options]
c_args = ['-m64']
c_link_args = ['-m64']
cpp_args = ['-m64']
cpp_link_args = ['-m64']
[host_machine]
system = 'emscripten'
cpu_family = 'wasm64'
cpu = 'wasm64'
endian = 'little'