diff options
| -rw-r--r-- | xmake/core/sandbox/modules/import/lib/detect/find_program.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/sandbox/modules/import/lib/detect/find_program.lua b/xmake/core/sandbox/modules/import/lib/detect/find_program.lua index aae3c2e4f..3923916d9 100644 --- a/xmake/core/sandbox/modules/import/lib/detect/find_program.lua +++ b/xmake/core/sandbox/modules/import/lib/detect/find_program.lua @@ -86,7 +86,7 @@ function sandbox_lib_detect_find_program._check(program, opt) findname = program end if sandbox_lib_detect_find_program._do_check(findname, opt) then - return findname + return program -- check "zig c++" without ".exe" -- https://github.com/xmake-io/xmake/issues/2232 elseif findname ~= program and path.filename(program):find(" ", 1, true) and |
