Skip to content

Commit f335128

Browse files
committed
[IRGen] Don't wait until we find libswiftCore to autolink libobjc.
No intended functionality change. Swift SVN r29443
1 parent c516ef9 commit f335128

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/IRGen/GenDecl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,11 @@ void IRGenModule::emitSourceFile(SourceFile &SF, unsigned StartElem) {
441441

442442
next->collectLinkLibraries([this](LinkLibrary linkLib) {
443443
this->addLinkLibrary(linkLib);
444-
if (ObjCInterop)
445-
if (linkLib.getName().equals("swiftCore"))
446-
this->addLinkLibrary(LinkLibrary("objc", LibraryKind::Library));
447444
});
448445
});
446+
447+
if (ObjCInterop)
448+
this->addLinkLibrary(LinkLibrary("objc", LibraryKind::Library));
449449
}
450450

451451
/// Emit a global list, i.e. a global constant array holding all of a

0 commit comments

Comments
 (0)