mirror of
https://github.com/mesonbuild/meson.git
synced 2026-08-09 01:01:17 +00:00
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:
@@ -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'
|
||||
18
cross/wasm64-emscripten.txt
Normal file
18
cross/wasm64-emscripten.txt
Normal 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'
|
||||
Reference in New Issue
Block a user