aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDan Kegel <[email protected]>2022-04-08 08:20:28 -0700
committerRon Evans <[email protected]>2022-04-09 09:16:37 +0200
commit8dfb317d280e4c9cce4021cd16fa772d0699c590 (patch)
tree8f40f1f060e6459735013171b825bcf36928b1f0
parent9cedd78d9ce0cd5802051a34cdef78662be78f86 (diff)
downloadtinygo-8dfb317d280e4c9cce4021cd16fa772d0699c590.tar.gz
tinygo-8dfb317d280e4c9cce4021cd16fa772d0699c590.zip
Allow building with go 1.18
-rw-r--r--builder/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/builder/config.go b/builder/config.go
index fcfa55483..a19305075 100644
--- a/builder/config.go
+++ b/builder/config.go
@@ -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 < 15 || minor > 17 {
- return nil, fmt.Errorf("requires go version 1.15 through 1.17, got go%d.%d", major, minor)
+ if major != 1 || minor < 15 || minor > 18 {
+ return nil, fmt.Errorf("requires go version 1.15 through 1.18, got go%d.%d", major, minor)
}
clangHeaderPath := getClangHeaderPath(goenv.Get("TINYGOROOT"))