mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
Add (hardcoded) runtime.GOROOT()
Necessary for the time package.
This commit is contained in:
@@ -21,6 +21,11 @@ func GOMAXPROCS(n int) int {
|
||||
return 1
|
||||
}
|
||||
|
||||
func GOROOT() string {
|
||||
// TODO: don't hardcode but take the one at compile time.
|
||||
return "/usr/local/go"
|
||||
}
|
||||
|
||||
// Copy size bytes from src to dst. The memory areas must not overlap.
|
||||
func memcpy(dst, src unsafe.Pointer, size uintptr) {
|
||||
for i := uintptr(0); i < size; i++ {
|
||||
|
||||
Reference in New Issue
Block a user