diff options
author | Ian Lance Taylor <iant@golang.org> | 2018-10-24 15:49:32 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2018-10-30 04:39:53 +0000 |
commit | 2e9f0817f070a3979afc580c740670690acab672 (patch) | |
tree | 0b02b0e077a0fb2814c542d87a1fe62f6da1647c /src/cmd/compile/doc.go | |
parent | d1836e629fdfcf8b13e616630ba15d461700a953 (diff) | |
download | go-2e9f0817f070a3979afc580c740670690acab672.tar.gz go-2e9f0817f070a3979afc580c740670690acab672.zip |
cmd/compile: add -lang flag to specify language version
The default language version is the current one.
For testing purposes, added a check that type aliases require version
go1.9. There is no consistent support for changes made before 1.12.
Updates #28221
Change-Id: Ia1ef63fff911d5fd29ef79d5fa4e20cfd945feb7
Reviewed-on: https://go-review.googlesource.com/c/144340
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/cmd/compile/doc.go')
-rw-r--r-- | src/cmd/compile/doc.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/compile/doc.go b/src/cmd/compile/doc.go index bce03fc40f..e2a19d98c0 100644 --- a/src/cmd/compile/doc.go +++ b/src/cmd/compile/doc.go @@ -64,6 +64,9 @@ Flags: instead of $GOROOT/pkg/$GOOS_$GOARCH. -l Disable inlining. + -lang version + Set language version to compile, as in -lang=go1.12. + Default is current version. -largemodel Generate code that assumes a large memory model. -linkobj file |