mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
nix: fix wasi-libc include headers
Apparently Nix really doesn't like --sysroot, so we have to use `-nostdlibinc` and `-isystem` instead.
This commit is contained in:
committed by
Ron Evans
parent
055950421a
commit
331cfb65b7
@@ -310,7 +310,9 @@ func (c *Config) CFlags(libclang bool) []string {
|
||||
)
|
||||
case "wasi-libc":
|
||||
root := goenv.Get("TINYGOROOT")
|
||||
cflags = append(cflags, "--sysroot="+root+"/lib/wasi-libc/sysroot")
|
||||
cflags = append(cflags,
|
||||
"-nostdlibinc",
|
||||
"-isystem", root+"/lib/wasi-libc/sysroot/include")
|
||||
case "wasmbuiltins":
|
||||
// nothing to add (library is purely for builtins)
|
||||
case "mingw-w64":
|
||||
|
||||
Reference in New Issue
Block a user