mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
build: generate files with go:build tags
This commit is contained in:
@@ -285,7 +285,7 @@ func writeGo(outdir string, device *Device) error {
|
||||
t := template.Must(template.New("go").Parse(`// Automatically generated file. DO NOT EDIT.
|
||||
// Generated by gen-device-avr.go from {{.metadata.file}}, see {{.metadata.descriptorSource}}
|
||||
|
||||
// +build {{.pkgName}},{{.metadata.nameLower}}
|
||||
//go:build {{.pkgName}} && {{.metadata.nameLower}}
|
||||
|
||||
// {{.metadata.description}}
|
||||
package {{.pkgName}}
|
||||
|
||||
Reference in New Issue
Block a user