diff options
| author | ruki <[email protected]> | 2025-02-20 00:52:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-02-20 00:52:51 +0800 |
| commit | eaf73273f3831b115eae0aa590cfaacef5885afd (patch) | |
| tree | 8b8a7b34645631b2bb6db891133bb3895858505a | |
| parent | 2c247e71bda320e60e9b5225002c79f2b2bb0d49 (diff) | |
improve to find kotlinc-native
| -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) |
