From 946cf1d25092246c10403e882c873dac244f4b02 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 7 Oct 2020 02:25:16 +0900 Subject: [PATCH] Improve portability of genkeys.go --- genkeys.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"