Skip to content

Commit

Permalink
setup: Actually check the right paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsmeding committed Jan 17, 2025
1 parent 6f0fcf1 commit 2b39c30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ cudaLibraryPath (Platform arch os) installPath =
[path] -> return $ installPath </> path
_ -> do
-- attempt to choose a directory that exists
candidates <- filterM doesDirectoryExist libpaths
candidates <- filterM (\d -> doesDirectoryExist (installPath </> d)) libpaths
case candidates of
[] -> return (installPath </> head libpaths) -- whatever
cand:_ -> return (installPath </> cand)
Expand Down

0 comments on commit 2b39c30

Please sign in to comment.