Fix aarch_64 macs not being able to build the compiler module. (#10516)

This commit is contained in:
Larry Safran 2023-08-23 14:58:11 -07:00 committed by GitHub
parent 2b4f649b0a
commit 3fad52129f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,7 @@ model {
target("loongarch_64")
}
clang(Clang) {
target("aarch_64") {}
}
}

View File

@ -92,6 +92,8 @@ checkArch ()
assertEq "$format" "i386" $LINENO
elif [[ "$ARCH" == x86_64 ]]; then
assertEq "$format" "x86_64" $LINENO
elif [[ "$ARCH" == aarch_64 ]]; then
assertEq "$format" "arm64" $LINENO
else
fail "Unsupported arch: $ARCH"
fi