mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 10:43:29 +00:00
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() {
}
This commit is contained in:
@@ -122,3 +122,8 @@ func write(fd uintptr, p unsafe.Pointer, n int32) int32 {
|
|||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// getAuxv is linknamed from golang.org/x/sys/cpu.
|
||||||
|
func getAuxv() []uintptr {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user