File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ macro(configure_sdk_unix name architectures)
378
378
message (FATAL_ERROR "unknown arch for ${prefix} : ${arch} " )
379
379
endif ()
380
380
elseif ("${prefix} " STREQUAL "FREEBSD" )
381
- if (NOT arch STREQUAL x86_64)
381
+ if (NOT arch MATCHES "(arm64| x86_64)" )
382
382
message (FATAL_ERROR "unsupported arch for FreeBSD: ${arch} " )
383
383
endif ()
384
384
@@ -389,7 +389,7 @@ macro(configure_sdk_unix name architectures)
389
389
string (REGEX REPLACE "[-].*" "" freebsd_system_version ${CMAKE_SYSTEM_VERSION} )
390
390
message (STATUS "FreeBSD Version: ${freebsd_system_version} " )
391
391
392
- set (SWIFT_SDK_FREEBSD_ARCH_x86_64_TRIPLE "x86_64 -unknown-freebsd${freebsd_system_version} " )
392
+ set (SWIFT_SDK_FREEBSD_ARCH_ ${arch} _TRIPLE " ${arch} -unknown-freebsd${freebsd_system_version} " )
393
393
elseif ("${prefix} " STREQUAL "OPENBSD" )
394
394
if (NOT arch STREQUAL amd64)
395
395
message (FATAL_ERROR "unsupported arch for OpenBSD: ${arch} " )
Original file line number Diff line number Diff line change @@ -452,7 +452,8 @@ function should_execute_host_actions_for_phase() {
452
452
function verify_host_is_supported() {
453
453
local host=" $1 "
454
454
case ${host} in
455
- freebsd-x86_64 \
455
+ freebsd-arm64 \
456
+ | freebsd-x86_64 \
456
457
| openbsd-amd64 \
457
458
| cygwin-x86_64 \
458
459
| haiku-x86_64 \
You can’t perform that action at this time.
0 commit comments