diff --git a/ext/build_monocypher_native.ps1 b/ext/build_monocypher_native.ps1 index b6f6235..4eb81e2 100755 --- a/ext/build_monocypher_native.ps1 +++ b/ext/build_monocypher_native.ps1 @@ -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