aboutsummaryrefslogtreecommitdiffstats
path: root/meson/cross/wasm.txt
diff options
context:
space:
mode:
Diffstat (limited to 'meson/cross/wasm.txt')
-rw-r--r--meson/cross/wasm.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/meson/cross/wasm.txt b/meson/cross/wasm.txt
new file mode 100644
index 000000000..f2d0cd7f5
--- /dev/null
+++ b/meson/cross/wasm.txt
@@ -0,0 +1,18 @@
+[binaries]
+c = '/home/jpakkane/emsdk/fastcomp/emscripten/emcc'
+cpp = '/home/jpakkane/emsdk/fastcomp/emscripten/em++'
+ar = '/home/jpakkane/emsdk/fastcomp/emscripten/emar'
+
+[built-in options]
+c_args = ['-s', 'WASM=1', '-s', 'EXPORT_ALL=1']
+c_link_args = ['-s','EXPORT_ALL=1']
+cpp_args = ['-s', 'WASM=1', '-s', 'EXPORT_ALL=1']
+cpp_link_args = ['-s', 'EXPORT_ALL=1']
+
+[host_machine]
+
+system = 'emscripten'
+cpu_family = 'wasm32'
+cpu = 'wasm32'
+endian = 'little'
+