diff options
| -rw-r--r-- | xmake/modules/detect/tools/find_kotlinc_native.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/detect/tools/find_kotlinc_native.lua b/xmake/modules/detect/tools/find_kotlinc_native.lua index fe5a1a7c2..13f8cf53f 100644 --- a/xmake/modules/detect/tools/find_kotlinc_native.lua +++ b/xmake/modules/detect/tools/find_kotlinc_native.lua @@ -40,7 +40,7 @@ function main(opt) opt.check = opt.check or "-version" opt.command = opt.command or "-version" - local program = find_program(opt.program or "kotlinc_native", opt) + local program = find_program(opt.program or ("kotlinc_native" .. (is_host("windows") and ".bat" or "")), opt) local version = nil if program and opt and opt.version then version = find_programver(program, opt) |
