builder: add support for Go 1.20

Not all features work yet, but allow it to compile with this Go version.
This commit is contained in:
Ayke van Laethem
2023-01-13 17:53:55 +00:00
committed by Ron Evans
parent 3177591b31
commit 0d646d8e95
6 changed files with 24 additions and 10 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ func NewConfig(options *compileopts.Options) (*compileopts.Config, error) {
if err != nil {
return nil, fmt.Errorf("could not read version from GOROOT (%v): %v", goroot, err)
}
if major != 1 || minor < 18 || minor > 19 {
return nil, fmt.Errorf("requires go version 1.18 through 1.19, got go%d.%d", major, minor)
if major != 1 || minor < 18 || minor > 20 {
return nil, fmt.Errorf("requires go version 1.18 through 1.20, got go%d.%d", major, minor)
}
clangHeaderPath := getClangHeaderPath(goenv.Get("TINYGOROOT"))