Skip to content

Commit a86b25a

Browse files
committed
[cxx-interop][android] Exclude Android from the list of platforms to link against the swiftstd library
1 parent 60952b8 commit a86b25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ void IRGenModule::emitSourceFile(SourceFile &SF) {
496496

497497
// Only link with std on platforms where the overlay is available.
498498
// Do not try to link std with itself.
499-
if ((target.isOSDarwin() || target.isOSLinux()) &&
499+
if ((target.isOSDarwin() || (target.isOSLinux() && !target.isAndroid())) &&
500500
!getSwiftModule()->getName().is("Cxx") &&
501501
!getSwiftModule()->getName().is("std"))
502502
this->addLinkLibrary(LinkLibrary("swiftstd", LibraryKind::Library));

0 commit comments

Comments
 (0)