fix: Adds better arm64 support (#1409)

This commit is contained in:
Kamron Batman 2023-07-26 20:43:42 -07:00 committed by GitHub
parent d366e02251
commit d9d04f1f38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 40 additions and 47 deletions

View file

@ -5,7 +5,7 @@ GOTO :CMDSCRIPT
::SHELLSCRIPT
config=$1
os=$2
arch=${3:-x64}
arch=${3:-$(uname -m)}
if [[ -n $os ]]; then
os="-r $os"
@ -22,6 +22,12 @@ else
config="-c Release"
fi
if [[ $arch =~ ^[aarch|arm]* ]]; then
arch="arm64"
else
arch="x64"
fi
if [[ $os == *'centos'* || $os == *'rhel'* ]]; then
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
fi