[clang] 3b9f604 - [clang][mingw] Don't link to mingwthrd (#219936)

via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 27 14:07:04 PST 2026


Author: Zhongteng Gui
Date: 2026-11-28T00:06:59+02:00
New Revision: 3b9f6047bb9fbc5ba8066fa9f445216d3d8dd145

URL: https://github.com/llvm/llvm-project/commit/3b9f6047bb9fbc5ba8066fa9f445216d3d8dd145
DIFF: https://github.com/llvm/llvm-project/commit/3b9f6047bb9fbc5ba8066fa9f445216d3d8dd145.diff

LOG: [clang][mingw] Don't link to mingwthrd (#219936)

libmingwthrd has been empty and deprecated for a long time.

See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127135

Added: 
    

Modified: 
    clang/lib/Driver/ToolChains/MinGW.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/MinGW.cpp b/clang/lib/Driver/ToolChains/MinGW.cpp
index de34684327f175..f7344cf2fbb798 100644
--- a/clang/lib/Driver/ToolChains/MinGW.cpp
+++ b/clang/lib/Driver/ToolChains/MinGW.cpp
@@ -61,8 +61,6 @@ void tools::MinGW::Assembler::ConstructJob(Compilation &C, const JobAction &JA,
 void tools::MinGW::Linker::AddLibGCC(const ArgList &Args,
                                      ArgStringList &CmdArgs) const {
   bool NoLibc = Args.hasArg(options::OPT_nolibc);
-  if (Args.hasArg(options::OPT_mthreads))
-    CmdArgs.push_back("-lmingwthrd");
   if (!NoLibc)
     CmdArgs.push_back("-lmingw32");
 


        


More information about the cfe-commits mailing list