Skip to content

Commit

Permalink
Add the arm64 Linux binaries to the NuGet package.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Mar 21, 2022
1 parent f33abbe commit 654ac2f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions publish/publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@ function addNativeLibraries($xml, $quantumName, $platform) {

addNativeLibrary $xml $platform "win" "$quantumName-$platform.dll"

if ($platform -ne "x86") {
addNativeLibrary $xml $platform "linux" "$quantumName-$platform.dll.so"
}

if ($platform -eq "x64") {
if ($quantumName.EndsWith("-OpenMP")) {
addOpenMPLibrary $xml
addNativeLibrary $xml $platform "linux" "$quantumName-$platform.dll.so"
} else {
addNativeLibrary $xml $platform "linux" "$quantumName-$platform.dll.so"
addNativeLibrary $xml $platform "linux-musl" "$quantumName-$platform.dll.so"
addNativeLibrary $xml $platform "osx" "$quantumName-$platform.dll.dylib"
}
addNativeLibrary $xml $platform "linux-musl" "$quantumName-$platform.dll.so"
addNativeLibrary $xml $platform "osx" "$quantumName-$platform.dll.dylib"
}

if ($quantumName.EndsWith("-OpenMP")) {
addOpenMPLibrary $xml
}
}

Expand Down

0 comments on commit 654ac2f

Please sign in to comment.