wasi: specify wasi-libc in a different way

This way is more consistent with how picolibc is specified and allows
generating a helpful error message. This error message should never be
generated for TinyGo binary releases, only when doing local development.
This commit is contained in:
Ayke van Laethem
2021-03-04 14:31:34 +01:00
committed by Ron Evans
parent 9c3e479432
commit 869baca117
3 changed files with 17 additions and 6 deletions
+2 -2
View File
@@ -5,6 +5,7 @@
"goarch": "arm",
"compiler": "clang",
"linker": "wasm-ld",
"libc": "wasi-libc",
"cflags": [
"--target=wasm32--wasi",
"--sysroot={root}/lib/wasi-libc/sysroot",
@@ -14,8 +15,7 @@
"--allow-undefined",
"--stack-first",
"--export-dynamic",
"--no-demangle",
"{root}/lib/wasi-libc/sysroot/lib/wasm32-wasi/libc.a"
"--no-demangle"
],
"emulator": ["wasmtime"],
"wasm-abi": "generic"
+2 -2
View File
@@ -5,6 +5,7 @@
"goarch": "wasm",
"compiler": "clang",
"linker": "wasm-ld",
"libc": "wasi-libc",
"cflags": [
"--target=wasm32--wasi",
"--sysroot={root}/lib/wasi-libc/sysroot",
@@ -14,8 +15,7 @@
"--allow-undefined",
"--stack-first",
"--export-all",
"--no-demangle",
"{root}/lib/wasi-libc/sysroot/lib/wasm32-wasi/libc.a"
"--no-demangle"
],
"emulator": ["node", "targets/wasm_exec.js"],
"wasm-abi": "js"