File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
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} " )
You can’t perform that action at this time.
0 commit comments