We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60952b8 commit a86b25aCopy full SHA for a86b25a
lib/IRGen/GenDecl.cpp
@@ -496,7 +496,7 @@ void IRGenModule::emitSourceFile(SourceFile &SF) {
496
497
// Only link with std on platforms where the overlay is available.
498
// Do not try to link std with itself.
499
- if ((target.isOSDarwin() || target.isOSLinux()) &&
+ if ((target.isOSDarwin() || (target.isOSLinux() && !target.isAndroid())) &&
500
!getSwiftModule()->getName().is("Cxx") &&
501
!getSwiftModule()->getName().is("std"))
502
this->addLinkLibrary(LinkLibrary("swiftstd", LibraryKind::Library));
0 commit comments