diff options
author | Elias Naur <[email protected]> | 2024-07-08 22:09:30 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-08 13:09:30 -0700 |
commit | 5ca3e4a2da72a2cb981b9af061a14c1128870957 (patch) | |
tree | f3f11f4fba54da932d8d13a5cecd096b5a8387a4 | |
parent | e6caa3fe9ef0a68779953b7fc9c3cfce3c8158ca (diff) | |
download | tinygo-5ca3e4a2da72a2cb981b9af061a14c1128870957.tar.gz tinygo-5ca3e4a2da72a2cb981b9af061a14c1128870957.zip |
runtime: implement dummy getAuxv to satisfy golang.org/x/sys/cpu (#4325)
Fixes the program
package main
import _ "golang.org/x/sys/cpu"
func main() {
}
-rw-r--r-- | src/runtime/runtime.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go index a93260ba8..bb937f044 100644 --- a/src/runtime/runtime.go +++ b/src/runtime/runtime.go @@ -122,3 +122,8 @@ func write(fd uintptr, p unsafe.Pointer, n int32) int32 { } return 0 } + +// getAuxv is linknamed from golang.org/x/sys/cpu. +func getAuxv() []uintptr { + return nil +} |