diff options
author | Dan Kegel <[email protected]> | 2022-05-01 08:04:05 -0700 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-05-03 05:36:55 +0200 |
commit | e87cd23e873cc4dc19d7563ba01e95e295707f36 (patch) | |
tree | 55877ca031d04a477ccd32bf2967e403fc0fad91 /builder/config.go | |
parent | db389ba443c274c5d24e771e7bd5f7ab56866cae (diff) | |
download | tinygo-e87cd23e873cc4dc19d7563ba01e95e295707f36.tar.gz tinygo-e87cd23e873cc4dc19d7563ba01e95e295707f36.zip |
os: Drop support for go 1.15
1.15 specific files deleted.
1.16 specific files folded carefully into generic files, with goal of reducing diff with upstream.
Follows upstream 1.16 in making PathError etc. be aliases for the same errors in io/fs.
This fixes #2817 and lets us add io/ioutil to "make test-tinygo" on linux and mac.
Diffstat (limited to 'builder/config.go')
-rw-r--r-- | builder/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builder/config.go b/builder/config.go index a19305075..3f06c9688 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 > 18 { - return nil, fmt.Errorf("requires go version 1.15 through 1.18, got go%d.%d", major, minor) + if major != 1 || minor < 16 || minor > 18 { + return nil, fmt.Errorf("requires go version 1.16 through 1.18, got go%d.%d", major, minor) } clangHeaderPath := getClangHeaderPath(goenv.Get("TINYGOROOT")) |