diff options
author | Randy Reddig <[email protected]> | 2024-07-16 11:18:46 -0700 |
---|---|---|
committer | Ron Evans <[email protected]> | 2024-07-17 20:17:03 +0200 |
commit | 87a8aafc4fc84ca0a2b5e68f9e0b425e4fac4878 (patch) | |
tree | a9b9304d40373caeaca62ed8134c104cdc23df6f /src/syscall | |
parent | f026422b04573f6eab49fd6bf8156a217efac1f7 (diff) | |
download | tinygo-87a8aafc4fc84ca0a2b5e68f9e0b425e4fac4878.tar.gz tinygo-87a8aafc4fc84ca0a2b5e68f9e0b425e4fac4878.zip |
all: simplify wasm-tools-go dependency
- add internal/wasm-tools/go.mod file to depend on wasm-tools-go
- copy package cm into src/internal/cm
- remove wasm-tools-go "vendor" submodule
internal/tools: fix typo
go.{mod,sum}, internal/tools: add wit-bindgen-go to tools
GNUmakefile: use go run for wit-bindgen-go
GNUmakefile: add tools target to go:generate tools binaries in internal/tools
GNUmakefile: add .PHONY for lint and spell
GNUmakefile, internal/cm: vendor package cm into internal/cm
go.{mod,sum}: update wasm-tools-go to v0.1.4
internal/wasi: use internal/cm package
remove submodule src/vendor/github.com/ydnar/wasm-tools-go
GNUmakefile: add comment documenting what wasi-cm target does
go.{mod,sum}: remove toolchain; go mod tidy
go.mod: revert to Go 1.19
go.mod: go 1.19
go.{mod,sum}, internal/{tools,wasm-tools}: revert root go.mod file to go1.19
Create a wasm-tools specific module that can require go1.22 for wasm-tools-go.
Diffstat (limited to 'src/syscall')
-rw-r--r-- | src/syscall/libc_wasip2.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syscall/libc_wasip2.go b/src/syscall/libc_wasip2.go index ea3d3327d..1e985c1da 100644 --- a/src/syscall/libc_wasip2.go +++ b/src/syscall/libc_wasip2.go @@ -7,6 +7,8 @@ package syscall import ( "unsafe" + "internal/cm" + "internal/wasi/cli/v0.2.0/environment" "internal/wasi/cli/v0.2.0/stderr" "internal/wasi/cli/v0.2.0/stdin" @@ -17,8 +19,6 @@ import ( ioerror "internal/wasi/io/v0.2.0/error" "internal/wasi/io/v0.2.0/streams" "internal/wasi/random/v0.2.0/random" - - "github.com/ydnar/wasm-tools-go/cm" ) func goString(cstr *byte) string { |