diff --git a/genkeys.go b/genkeys.go index 9892f29ce..e7e75817a 100644 --- a/genkeys.go +++ b/genkeys.go @@ -706,9 +706,9 @@ func main() { // Pass the build tag and extract this in the template to make `go vet` happy. buildTag := "" switch path { - case "internal/glfw/keys.go": + case filepath.Join("internal", "glfw", "keys.go"): buildTag = "// +build !js" - case "internal/uidriver/glfw/keys.go": + case filepath.Join("internal", "uidriver", "glfw", "keys.go"): buildTag = "// +build darwin freebsd linux windows" + "\n// +build !android" + "\n// +build !ios"