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) {
490
490
if (!getSwiftModule ()->getName ().is (" Cxx" ))
491
491
this ->addLinkLibrary (LinkLibrary (" swiftCxx" , LibraryKind::Library));
492
492
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.
495
495
if ((target.isOSDarwin () || (target.isOSLinux () && !target.isAndroid ())) &&
496
496
!getSwiftModule ()->getName ().is (" Cxx" ) &&
497
497
!getSwiftModule ()->getName ().is (" CxxStdlib" ) &&
498
498
!getSwiftModule ()->getName ().is (" std" )) {
499
499
this ->addLinkLibrary (LinkLibrary (" swiftCxxStdlib" , LibraryKind::Library));
500
- if (target.isOSDarwin ())
501
- this ->addLinkLibrary (LinkLibrary (" swiftstd" , LibraryKind::Library));
502
500
}
503
501
}
504
502
You can’t perform that action at this time.
0 commit comments