From f358a852990bef0e77a523543c1fedf13d33eb6c Mon Sep 17 00:00:00 2001 From: "Trevor L. McDonell" Date: Thu, 21 Aug 2025 12:26:06 +0200 Subject: [PATCH] build: fix for linux/aarch64 --- Setup.hs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Setup.hs b/Setup.hs index 9e7bf6b..b08c1aa 100644 --- a/Setup.hs +++ b/Setup.hs @@ -223,11 +223,12 @@ cudaLibraryPaths (Platform arch os) installPath = [ installPath path | path where libpaths = case (os, arch) of - (Windows, I386) -> ["lib/Win32"] - (Windows, X86_64) -> ["lib/x64"] - (OSX, _) -> ["lib"] -- MacOS does not distinguish 32- vs. 64-bit paths - (_, X86_64) -> ["lib64", "lib"] -- prefer lib64 for 64-bit systems - _ -> ["lib"] + (Windows, I386) -> ["lib/Win32"] + (Windows, X86_64) -> ["lib/x64"] + (OSX, _) -> ["lib"] -- MacOS does not distinguish 32- vs. 64-bit paths + (_, X86_64) -> ["lib64", "lib"] -- prefer lib64 for 64-bit systems + (_, AArch64) -> ["lib64", "lib"] + _ -> ["lib"] -- otherwise -- On Windows and OSX we use different libraries depending on whether we are