ebiten: bug fix: wrong build tags

gofmt is used after the generation, so there was not an actual issue.
This commit is contained in:
Hajime Hoshi 2022-08-12 12:38:07 +09:00
parent dac6548c0c
commit c85d319471

View File

@ -827,10 +827,10 @@ func main() {
case filepath.Join("internal", "ui", "keys_mobile.go"):
buildTag = "//go:build (android || ios) && !nintendosdk && !ebitencbackend" +
"\n// +build android ios" +
"\n// +build !nintendosdk && !ebitencbackend"
"\n// +build !nintendosdk,!ebitencbackend"
case filepath.Join("internal", "ui", "keys_glfw.go"):
buildTag = "//go:build !android && !ios && !js && !nintendosdk && !ebitencbackend" +
"\n// +build !android,!ios,!js,!nintendosdk && !ebitencbackend"
"\n// +build !android,!ios,!js,!nintendosdk,!ebitencbackend"
}
// NOTE: According to godoc, maps are automatically sorted by key.
if err := tmpl.Execute(f, struct {