Skip to content

Commit

Permalink
Merge pull request #4861 from charlesseizilles/patch-1
Browse files Browse the repository at this point in the history
fix find_cudatools on windows
  • Loading branch information
waruqi committed Mar 22, 2024
2 parents c652808 + ec1e444 commit 24859ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xmake/modules/private/detect/find_cudatool.lua
Expand Up @@ -49,10 +49,10 @@ function main(toolname, parse, opt)
local program
local toolchains = find_cuda()
if toolchains and toolchains.bindir then
local file = path.join(toolchains.bindir, opt.program or toolname)
if os.isfile(file) then
program = find_program(file, opt)
end
local opt2 = table.clone(opt)
opt2.paths = opt2.paths or {}
table.insert(opt2.paths, toolchains.bindir)
program = find_program(opt2.program or toolname, opt2)
end

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

0 comments on commit 24859ec

Please sign in to comment.