We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4da094 commit 54bc2d2Copy full SHA for 54bc2d2
xmake/core/sandbox/modules/import/lib/detect/find_program.lua
@@ -178,6 +178,11 @@ end
178
-- find program
179
function sandbox_lib_detect_find_program._find(name, paths, opt)
180
181
+ -- valid program file?
182
+ if path.is_absolute(name) and os.isfile(name) then
183
+ return name
184
+ end
185
+
186
-- attempt to find it from the given directories
187
local program_path = sandbox_lib_detect_find_program._find_from_paths(name, paths, opt)
188
if program_path and opt.system ~= false then
0 commit comments