diff --git a/lib/IRGen/IRGenModule.cpp b/lib/IRGen/IRGenModule.cpp index 0d259aae6b912..ebb12907f1c7c 100644 --- a/lib/IRGen/IRGenModule.cpp +++ b/lib/IRGen/IRGenModule.cpp @@ -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,