tinygo-org / tinygo

Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
https://tinygo.org
Other
15.25k stars 900 forks source link

maps.Clone link error (missing maps.clone) #4382

Open ldemailly opened 1 month ago

ldemailly commented 1 month ago

Using https://pkg.go.dev/maps#Clone (present since go 1.21)

macOS:

ld.lld: error: undefined symbol: _maps.clone

wasm:

wasm-ld: error: undefined symbol: maps.clone

dgryski commented 3 weeks ago

Need to add https://github.com/golang/go/blob/release-branch.go1.23/src/runtime/map.go#L1616 to our runtime (specialized for our own map implementation of course)