all: remove +build tags (#377)
Commit 759be3dad9 bumped our Go
requirement to 1.18 which allows us to drop support for old-style
`+build` tags. This change runs `go fix ./...` to remove them, and
updates some remaining code generators that produced `+build` lines.
This commit is contained in:
committed by
GitHub
parent
759be3dad9
commit
34ac353c14
@@ -20,7 +20,7 @@ func NewBuildTest(cfg printer.Config) Interface {
|
||||
|
||||
func (b *buildtest) Generate(is []inst.Instruction) ([]byte, error) {
|
||||
b.Printf("// %s\n\n", b.cfg.GeneratedWarning())
|
||||
b.BuildTag("!integration")
|
||||
b.BuildConstraint("!integration")
|
||||
b.NL()
|
||||
b.Printf("package build\n\n")
|
||||
b.Printf("import (\n")
|
||||
|
||||
@@ -23,7 +23,7 @@ func NewCtorsTest(cfg printer.Config) Interface {
|
||||
|
||||
func (c *ctorstest) Generate(is []inst.Instruction) ([]byte, error) {
|
||||
c.Printf("// %s\n\n", c.cfg.GeneratedWarning())
|
||||
c.BuildTag("!integration")
|
||||
c.BuildConstraint("!integration")
|
||||
c.NL()
|
||||
c.Printf("package x86\n\n")
|
||||
c.Printf("import (\n")
|
||||
@@ -65,7 +65,7 @@ func NewCtorsStress(cfg printer.Config) Interface {
|
||||
|
||||
func (c *ctorsstress) Generate(is []inst.Instruction) ([]byte, error) {
|
||||
c.Printf("// %s\n\n", c.cfg.GeneratedWarning())
|
||||
c.BuildTag("stress")
|
||||
c.BuildConstraint("stress")
|
||||
c.NL()
|
||||
c.Printf("package x86\n\n")
|
||||
c.Printf("import (\n")
|
||||
@@ -112,7 +112,7 @@ func NewCtorsBench(cfg printer.Config) Interface {
|
||||
|
||||
func (c *ctorsbench) Generate(is []inst.Instruction) ([]byte, error) {
|
||||
c.Printf("// %s\n\n", c.cfg.GeneratedWarning())
|
||||
c.BuildTag("stress")
|
||||
c.BuildConstraint("stress")
|
||||
c.NL()
|
||||
c.Printf("package x86\n\n")
|
||||
c.Printf("import (\n")
|
||||
|
||||
Reference in New Issue
Block a user