From 7ebef4a23d64ceb5d9a6e7b2023a1f12d509d206 Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Fri, 12 Dec 2025 15:50:07 -0800 Subject: [PATCH] Test --- lib/IRGen/IRGenModule.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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,