[clang] [lld] [llvm] [lld][WebAssembly] WASIP3 and component model threading support (PR #175800)

Sam Clegg via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 17 09:15:23 PST 2026


================
@@ -90,10 +95,13 @@ void wasm::Linker::ConstructJob(Compilation &C, const JobAction &JA,
   ArgStringList CmdArgs;
 
   CmdArgs.push_back("-m");
+  std::string arch;
   if (ToolChain.getTriple().isArch64Bit())
-    CmdArgs.push_back("wasm64");
+    arch = "wasm64";
   else
-    CmdArgs.push_back("wasm32");
+    arch = "wasm32";
+
+  CmdArgs.push_back(Args.MakeArgString(arch));
----------------
sbc100 wrote:

Is this part of the change still needed?  (i.e. is the `-m` flag changed?)

https://github.com/llvm/llvm-project/pull/175800


More information about the cfe-commits mailing list