mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #74603 from hyp/eng/android-link-cxxstdlib
[cxx-interop][android] link with CxxStdlib when building for Android too
This commit is contained in:
@@ -537,11 +537,6 @@ swift::dependencies::registerCxxInteropLibraries(
|
||||
})) {
|
||||
// Only link with CxxStdlib on platforms where the overlay is available.
|
||||
switch (Target.getOS()) {
|
||||
case llvm::Triple::Linux:
|
||||
if (!Target.isAndroid())
|
||||
RegistrationCallback(LinkLibrary("swiftCxxStdlib",
|
||||
LibraryKind::Library));
|
||||
break;
|
||||
case llvm::Triple::Win32: {
|
||||
RegistrationCallback(
|
||||
LinkLibrary(hasStaticCxxStdlib ? "libswiftCxxStdlib" : "swiftCxxStdlib",
|
||||
@@ -549,7 +544,7 @@ swift::dependencies::registerCxxInteropLibraries(
|
||||
break;
|
||||
}
|
||||
default:
|
||||
if (Target.isOSDarwin())
|
||||
if (Target.isOSDarwin() || Target.isOSLinux())
|
||||
RegistrationCallback(LinkLibrary("swiftCxxStdlib",
|
||||
LibraryKind::Library));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user