mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 23:43:40 +00:00
wasm: specify wasi-libc in code, not in the JSON target file
This brings a bit more consistency to libc configuration. It seems better to me to set the header flags all in the same place, instead of some in Go code and some in JSON target files (depending on the target).
This commit is contained in:
committed by
Ron Evans
parent
de6f831983
commit
39ff13fd1a
@@ -6,9 +6,6 @@
|
||||
"goarch": "arm",
|
||||
"linker": "wasm-ld",
|
||||
"libc": "wasi-libc",
|
||||
"cflags": [
|
||||
"--sysroot={root}/lib/wasi-libc/sysroot"
|
||||
],
|
||||
"ldflags": [
|
||||
"--allow-undefined",
|
||||
"--stack-first",
|
||||
|
||||
@@ -6,9 +6,6 @@
|
||||
"goarch": "wasm",
|
||||
"linker": "wasm-ld",
|
||||
"libc": "wasi-libc",
|
||||
"cflags": [
|
||||
"--sysroot={root}/lib/wasi-libc/sysroot"
|
||||
],
|
||||
"ldflags": [
|
||||
"--allow-undefined",
|
||||
"--stack-first",
|
||||
|
||||
Reference in New Issue
Block a user