wasm-unknown: add math and memory builtins that LLVM needs

This new library is needed for wasm targets that aren't WASI and don't
need/want a libc, but still need some intrinsics that are generated by
LLVM.
This commit is contained in:
Ayke van Laethem
2024-03-04 20:27:05 +01:00
committed by Ron Evans
parent d628e3e2cb
commit 7c546525ea
5 changed files with 101 additions and 2 deletions
+2
View File
@@ -311,6 +311,8 @@ func (c *Config) CFlags(libclang bool) []string {
case "wasi-libc":
root := goenv.Get("TINYGOROOT")
cflags = append(cflags, "--sysroot="+root+"/lib/wasi-libc/sysroot")
case "wasmbuiltins":
// nothing to add (library is purely for builtins)
case "mingw-w64":
root := goenv.Get("TINYGOROOT")
path, _ := c.LibcPath("mingw-w64")