mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
FreeBSD: Autolink C++ runtime
This hooks up the autolink mechanism to link the C++ runtime when C++ interop is enabled on FreeBSD.
This commit is contained in:
@@ -573,7 +573,8 @@ void swift::dependencies::registerCxxInteropLibraries(
|
||||
return mainModuleName == Name;
|
||||
})) {
|
||||
// Only link with CxxStdlib on platforms where the overlay is available.
|
||||
if (Target.isOSDarwin() || Target.isOSLinux() || Target.isOSWindows())
|
||||
if (Target.isOSDarwin() || Target.isOSLinux() || Target.isOSWindows() ||
|
||||
Target.isOSFreeBSD())
|
||||
RegistrationCallback(LinkLibrary{"swiftCxxStdlib", LibraryKind::Library,
|
||||
hasStaticCxxStdlib});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user