File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments