Fix the ARM architecture on FreeBSD

The 64-bit ARM architecture spelling on FreeBSD is aarch64, not arm64.
This results in a build failure about a missing
`freebsd/arm64/swiftrt.o` while building the runtimes.
This commit is contained in:
Evan Wilde
2025-05-20 18:46:58 -07:00
parent 9993d295fa
commit fd2ba8b95d
3 changed files with 4 additions and 4 deletions

View File

@@ -417,7 +417,7 @@ macro(configure_sdk_unix name architectures)
message(FATAL_ERROR "unknown arch for ${prefix}: ${arch}")
endif()
elseif("${prefix}" STREQUAL "FREEBSD")
if(NOT arch MATCHES "(arm64|x86_64)")
if(NOT arch MATCHES "(aarch64|x86_64)")
message(FATAL_ERROR "unsupported arch for FreeBSD: ${arch}")
endif()