File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -494,8 +494,15 @@ void IRGenModule::emitSourceFile(SourceFile &SF) {
494
494
// Do not try to link std with itself.
495
495
if ((target.isOSDarwin () || target.isOSLinux ()) &&
496
496
!getSwiftModule ()->getName ().is (" Cxx" ) &&
497
- !getSwiftModule ()->getName ().is (" std" ))
497
+ !getSwiftModule ()->getName ().is (" CxxStdlib" ) &&
498
+ !getSwiftModule ()->getName ().is (" std" )) {
499
+ // TODO: link with swiftCxxStdlib unconditionally once the overlay module
500
+ // is renamed in CMake
501
+ if (target.isOSDarwin ())
502
+ this ->addLinkLibrary (
503
+ LinkLibrary (" swiftCxxStdlib" , LibraryKind::Library));
498
504
this ->addLinkLibrary (LinkLibrary (" swiftstd" , LibraryKind::Library));
505
+ }
499
506
}
500
507
501
508
// FIXME: It'd be better to have the driver invocation or build system that
You can’t perform that action at this time.
0 commit comments