mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 04:49:04 +00:00
build: generate files with go:build tags
This commit is contained in:
@@ -875,7 +875,7 @@ func writeGo(outdir string, device *Device, interruptSystem string) error {
|
||||
}).Parse(`// Automatically generated file. DO NOT EDIT.
|
||||
// Generated by gen-device-svd.go from {{.device.Metadata.File}}, see {{.device.Metadata.DescriptorSource}}
|
||||
|
||||
// +build {{.pkgName}},{{.device.Metadata.NameLower}}
|
||||
//go:build {{.pkgName}} && {{.device.Metadata.NameLower}}
|
||||
|
||||
// {{.device.Metadata.Description}}
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user