mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 03:53:42 +00:00
all: add Go 1.24 support
This commit is contained in:
committed by
Ron Evans
parent
66da29e89f
commit
38e3d55e64
@@ -0,0 +1,15 @@
|
||||
package runtime
|
||||
|
||||
// Dummy implementation of synctest functions (we don't support synctest at the
|
||||
// moment).
|
||||
|
||||
//go:linkname synctest_acquire internal/synctest.acquire
|
||||
func synctest_acquire() any {
|
||||
// Dummy: we don't support synctest.
|
||||
return nil
|
||||
}
|
||||
|
||||
//go:linkname synctest_release internal/synctest.release
|
||||
func synctest_release(sg any) {
|
||||
// Dummy: we don't support synctest.
|
||||
}
|
||||
@@ -1,5 +1,18 @@
|
||||
package runtime
|
||||
|
||||
//go:linkname time_runtimeNano time.runtimeNano
|
||||
func time_runtimeNano() int64 {
|
||||
// Note: we're ignoring sync groups here (package testing/synctest).
|
||||
// See: https://github.com/golang/go/issues/67434
|
||||
return nanotime()
|
||||
}
|
||||
|
||||
//go:linkname time_runtimeNow time.runtimeNow
|
||||
func time_runtimeNow() (sec int64, nsec int32, mono int64) {
|
||||
// Also ignoring the sync group here, like time_runtimeNano above.
|
||||
return now()
|
||||
}
|
||||
|
||||
// timerNode is an element in a linked list of timers.
|
||||
type timerNode struct {
|
||||
next *timerNode
|
||||
|
||||
Reference in New Issue
Block a user