From eaf73273f3831b115eae0aa590cfaacef5885afd Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 20 Feb 2025 00:52:51 +0800 Subject: improve to find kotlinc-native --- xmake/modules/detect/tools/find_kotlinc_native.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.3.1