Skip to content

Commit

Permalink
Try to fix building native on macos for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Feb 19, 2024
1 parent e36b4cd commit 7326dd3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/build_monocypher_native.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ function Build-Project {
if ($IsMacOS) {
$NETPlatform = "osx"
$NETSharedLibExtension = "dylib"
if ($NETArch -eq "arm64") {
$CMakeArch = "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 -DCMAKE_OSX_ARCHITECTURES='arm64'"
}
elseif ($NETArch -eq "x64") {
$CMakeArch = "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 -DCMAKE_OSX_ARCHITECTURES='x86_64'"
}
}
elseif ($IsWindows) {
$MsvcArch = $NETArch
Expand Down

0 comments on commit 7326dd3

Please sign in to comment.