Skip to content

Commit 146e2cd

Browse files
ysoldakdeadprogram
authored andcommitted
build: generate files with go:build tags
1 parent d304e67 commit 146e2cd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/gen-critical-atomics/gen-critical-atomics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var tmpl = template.Must(template.New("go").Funcs(template.FuncMap{
1717
return v
1818
},
1919
"title": strings.Title,
20-
}).Parse(`//+build baremetal,!tinygo.wasm
20+
}).Parse(`//go:build baremetal && !tinygo.wasm
2121
2222
// Automatically generated file. DO NOT EDIT.
2323
// This file implements standins for non-native atomics using critical sections.

tools/gen-device-avr/gen-device-avr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ func writeGo(outdir string, device *Device) error {
285285
t := template.Must(template.New("go").Parse(`// Automatically generated file. DO NOT EDIT.
286286
// Generated by gen-device-avr.go from {{.metadata.file}}, see {{.metadata.descriptorSource}}
287287
288-
// +build {{.pkgName}},{{.metadata.nameLower}}
288+
//go:build {{.pkgName}} && {{.metadata.nameLower}}
289289
290290
// {{.metadata.description}}
291291
package {{.pkgName}}

tools/gen-device-svd/gen-device-svd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ func writeGo(outdir string, device *Device, interruptSystem string) error {
875875
}).Parse(`// Automatically generated file. DO NOT EDIT.
876876
// Generated by gen-device-svd.go from {{.device.Metadata.File}}, see {{.device.Metadata.DescriptorSource}}
877877
878-
// +build {{.pkgName}},{{.device.Metadata.NameLower}}
878+
//go:build {{.pkgName}} && {{.device.Metadata.NameLower}}
879879
880880
// {{.device.Metadata.Description}}
881881
//

0 commit comments

Comments
 (0)