Skip to content
Draft

Test #86022

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/IRGen/IRGenModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1755,9 +1755,8 @@ void IRGenModule::addLinkLibraries() {
bool hasStaticCxxStdlib = false;
if (const auto *M = Context.getModuleByName(CXX_MODULE_NAME))
hasStaticCxx = M->isStaticLibrary();
if (Context.LangOpts.Target.getOS() == llvm::Triple::Win32)
if (const auto *M = Context.getModuleByName("CxxStdlib"))
hasStaticCxxStdlib = M->isStaticLibrary();
if (const auto *M = Context.getModuleByName("CxxStdlib"))
hasStaticCxxStdlib = M->isStaticLibrary();
dependencies::registerCxxInteropLibraries(Context.LangOpts.Target,
getSwiftModule()->getName().str(),
hasStaticCxx,
Expand Down