tinygo/src/runtime/extern.go
Ayke van Laethem 5cd8ba2421 all: refactor goenv.Version to add the git sha1 if needed
Previously all (except one!) usage of goenv.Version manually added the
git sha1 hash, leading to duplicate code. I've moved this to do it all
in one place, to avoid this duplication.
2023-10-04 16:20:32 +02:00

16 строки
336 Б
Go

package runtime
func Callers(skip int, pc []uintptr) int {
return 0
}
// buildVersion is the Tinygo tree's version string at build time.
//
// This is set by the linker.
var buildVersion string
// Version returns the Tinygo tree's version string.
// It is the same as goenv.Version().
func Version() string {
return buildVersion
}