diff options
| author | ruki <[email protected]> | 2022-02-07 23:22:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-02-07 23:22:25 +0800 |
| commit | c88d9afcb3e929d6c0a4f3644399ac3df572829f (patch) | |
| tree | 2c0ab7de08a156f48e69342de301b8dd81ab3cd7 | |
| parent | fcf64a67658555e3dc3ebb06045645e21de9188f (diff) | |
improve to find gn
| -rw-r--r-- | xmake/modules/detect/tools/find_gn.lua | 3 |
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 |
