tmcdonell / cuda

Haskell FFI bindings to CUDA
Other
76 stars 36 forks source link

Fix GHCi on Windows; the DLLs are in the bin dir. #51

Closed TravisWhitaker closed 7 years ago

TravisWhitaker commented 7 years ago

Windows is a wacky, wacky world and the DLLs that GHCi needs are in the bin directory instead of lib. This patch adds that path to extra-lib-dirs when on Windows.

TravisWhitaker commented 7 years ago

Drat, just noticed this commit was botched; sorry about that. Should work now.

TravisWhitaker commented 7 years ago

Actually, please don't merge this after all. Turns out that GHCi is able to find the libraries it needs as long as a cuda.buildinfo file exists, even if it's identical to cuda.buildinfo.generated! Something else is going on in Setup.hs, it seems.

tmcdonell commented 7 years ago

Ah, no worries. It was an easy fix, but if it doesn't help ghci then no point releasing a new version. Thanks anyway!