From c88d9afcb3e929d6c0a4f3644399ac3df572829f Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 7 Feb 2022 23:22:25 +0800 Subject: improve to find gn --- xmake/modules/detect/tools/find_gn.lua | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.3.1