mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user