Skip to content

Commit 35e1276

Browse files
authored
Merge pull request #83595 from etcwilde/ewilde/freebsd-module-triples
FreeBSD: Set runtime module triple correctly
2 parents 36246a2 + 8f3341e commit 35e1276

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/modules/SwiftConfigureSDK.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ macro(configure_sdk_unix name architectures)
440440
string(REGEX REPLACE "[-].*" "" freebsd_system_version ${CMAKE_SYSTEM_VERSION})
441441
message(STATUS "FreeBSD Version: ${freebsd_system_version}")
442442

443-
set(SWIFT_SDK_FREEBSD_ARCH_${arch}_TRIPLE "${arch}-unknown-freebsd")
443+
set(SWIFT_SDK_FREEBSD_ARCH_${arch}_TRIPLE "${arch}-unknown-freebsd${freebsd_system_version}}")
444+
set(SWIFT_SDK_FREEBSD_ARCH_${arch}_MODULE "${arch}-unknown-freebsd")
444445
elseif("${prefix}" STREQUAL "OPENBSD")
445446
if(NOT arch STREQUAL "x86_64" AND NOT arch STREQUAL "aarch64")
446447
message(FATAL_ERROR "unsupported arch for OpenBSD: ${arch}")

0 commit comments

Comments
 (0)