mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Remove FreeBSD version from SDK triple
This commit is contained in:
@@ -427,7 +427,7 @@ macro(configure_sdk_unix name architectures)
|
|||||||
string(REGEX REPLACE "[-].*" "" freebsd_system_version ${CMAKE_SYSTEM_VERSION})
|
string(REGEX REPLACE "[-].*" "" freebsd_system_version ${CMAKE_SYSTEM_VERSION})
|
||||||
message(STATUS "FreeBSD Version: ${freebsd_system_version}")
|
message(STATUS "FreeBSD Version: ${freebsd_system_version}")
|
||||||
|
|
||||||
set(SWIFT_SDK_FREEBSD_ARCH_${arch}_TRIPLE "${arch}-unknown-freebsd${freebsd_system_version}")
|
set(SWIFT_SDK_FREEBSD_ARCH_${arch}_TRIPLE "${arch}-unknown-freebsd")
|
||||||
elseif("${prefix}" STREQUAL "OPENBSD")
|
elseif("${prefix}" STREQUAL "OPENBSD")
|
||||||
if(NOT arch STREQUAL "x86_64" AND NOT arch STREQUAL "aarch64")
|
if(NOT arch STREQUAL "x86_64" AND NOT arch STREQUAL "aarch64")
|
||||||
message(FATAL_ERROR "unsupported arch for OpenBSD: ${arch}")
|
message(FATAL_ERROR "unsupported arch for OpenBSD: ${arch}")
|
||||||
|
|||||||
@@ -414,6 +414,10 @@ llvm::Triple swift::getTargetSpecificModuleTriple(const llvm::Triple &triple) {
|
|||||||
triple.getOSName(), environment);
|
triple.getOSName(), environment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (triple.isOSFreeBSD()) {
|
||||||
|
return swift::getUnversionedTriple(triple);
|
||||||
|
}
|
||||||
|
|
||||||
// Other platforms get no normalization.
|
// Other platforms get no normalization.
|
||||||
return triple;
|
return triple;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user