mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-05 08:37:31 -04:00
unix: add //go:build lines when generating files
The //+go:build lines were added by running Go 1.17 gofmt in CL 294490. Make sure to retain them when re-generating files in this package. For golang/go#41184. Change-Id: Ia418b8c0eb4291a0db3f4bb97685bde78d0ff016 Reviewed-on: https://go-review.googlesource.com/c/sys/+/296889 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
committed by
Tobias Klauser
parent
94ec62e081
commit
68d13333fa
+2
-1
@@ -127,7 +127,8 @@ func main() {
|
||||
replacement := fmt.Sprintf(`$1 | go run mkpost.go
|
||||
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||
|
||||
// +build %s,%s`, goarch, goos)
|
||||
//go:build %s && %s
|
||||
// +build %s,%s`, goarch, goos, goarch, goos)
|
||||
cgoCommandRegex := regexp.MustCompile(`(cgo -godefs .*)`)
|
||||
b = cgoCommandRegex.ReplaceAll(b, []byte(replacement))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user