diff options
Diffstat (limited to 'compileopts/config.go')
-rw-r--r-- | compileopts/config.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compileopts/config.go b/compileopts/config.go index 24da4e280..e3f67b11a 100644 --- a/compileopts/config.go +++ b/compileopts/config.go @@ -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": |