Skip to content

Commit 24201c3

Browse files
authored
Merge pull request #64768 from apple/egorzhdan/5.9-swiftstd-ld-warning
🍒[cxx-interop] Do not try linking with swiftstd
2 parents 61a7396 + 596dde5 commit 24201c3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/IRGen/GenDecl.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,15 +490,13 @@ void IRGenModule::emitSourceFile(SourceFile &SF) {
490490
if (!getSwiftModule()->getName().is("Cxx"))
491491
this->addLinkLibrary(LinkLibrary("swiftCxx", LibraryKind::Library));
492492

493-
// Only link with std on platforms where the overlay is available.
494-
// Do not try to link std with itself.
493+
// Only link with CxxStdlib on platforms where the overlay is available.
494+
// Do not try to link CxxStdlib with itself.
495495
if ((target.isOSDarwin() || (target.isOSLinux() && !target.isAndroid())) &&
496496
!getSwiftModule()->getName().is("Cxx") &&
497497
!getSwiftModule()->getName().is("CxxStdlib") &&
498498
!getSwiftModule()->getName().is("std")) {
499499
this->addLinkLibrary(LinkLibrary("swiftCxxStdlib", LibraryKind::Library));
500-
if (target.isOSDarwin())
501-
this->addLinkLibrary(LinkLibrary("swiftstd", LibraryKind::Library));
502500
}
503501
}
504502

0 commit comments

Comments
 (0)