mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
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:
committed by
Ron Evans
parent
9c3e479432
commit
869baca117
+2
-2
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user