diff options
| author | ruki <[email protected]> | 2024-05-23 00:27:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-05-23 00:27:40 +0800 |
| commit | 5779f5f90b169569e41db19633b634c7d509901c (patch) | |
| tree | c185bba698982055df3730c626b3ac662ce46f9e | |
| parent | bb7fa2ba468eb0f0b04266b597bfc562dcaa804e (diff) | |
revert to find_program
| -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 |
