summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-02-07 23:22:25 +0800
committerruki <[email protected]>2022-02-07 23:22:25 +0800
commitc88d9afcb3e929d6c0a4f3644399ac3df572829f (patch)
tree2c0ab7de08a156f48e69342de301b8dd81ab3cd7
parentfcf64a67658555e3dc3ebb06045645e21de9188f (diff)
improve to find gn
-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