summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/detect/tools/find_gn.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/detect/tools/find_gn.lua b/xmake/modules/detect/tools/find_gn.lua
index 563d66ecc..bd9869765 100644
--- a/xmake/modules/detect/tools/find_gn.lua
+++ b/xmake/modules/detect/tools/find_gn.lua
@@ -42,6 +42,9 @@ function main(opt)
-- find program
local program = find_program(opt.program or "gn", opt)
+ if not program and is_host("windows") then
+ program = find_program("gn.bat", opt)
+ end
-- find program version
local version = nil