Skip to content

Commit 89263eb

Browse files
authored
Merge pull request #81 from tmcdonell/fix/aarch64
Build fix for linux/aarch64
2 parents f6bf222 + f358a85 commit 89263eb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Setup.hs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,12 @@ cudaLibraryPaths (Platform arch os) installPath = [ installPath </> path | path
223223
where
224224
libpaths =
225225
case (os, arch) of
226-
(Windows, I386) -> ["lib/Win32"]
227-
(Windows, X86_64) -> ["lib/x64"]
228-
(OSX, _) -> ["lib"] -- MacOS does not distinguish 32- vs. 64-bit paths
229-
(_, X86_64) -> ["lib64", "lib"] -- prefer lib64 for 64-bit systems
230-
_ -> ["lib"]
226+
(Windows, I386) -> ["lib/Win32"]
227+
(Windows, X86_64) -> ["lib/x64"]
228+
(OSX, _) -> ["lib"] -- MacOS does not distinguish 32- vs. 64-bit paths
229+
(_, X86_64) -> ["lib64", "lib"] -- prefer lib64 for 64-bit systems
230+
(_, AArch64) -> ["lib64", "lib"]
231+
_ -> ["lib"] -- otherwise
231232

232233

233234
-- On Windows and OSX we use different libraries depending on whether we are

0 commit comments

Comments
 (0)