Skip to content

Commit

Permalink
improve to find cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Feb 24, 2024
1 parent ed92054 commit a91f084
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xmake/modules/private/detect/find_cudatool.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ function main(toolname, parse, opt)
local program
local toolchains = find_cuda()
if toolchains and toolchains.bindir then
program = find_program(path.join(toolchains.bindir, opt.program or toolname), opt)
local file = path.join(toolchains.bindir, opt.program or toolname)
if os.isfile(file) then
program = find_program(file, opt)
end
end

-- not found? attempt to find program only
Expand Down

0 comments on commit a91f084

Please sign in to comment.