[clang] [lld] [llvm] [WebAssembly] WASIP3 and component model threading support (PR #175800)
Sy Brand via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 20 01:04:08 PST 2026
================
@@ -79,6 +79,19 @@ static bool WantsPthread(const llvm::Triple &Triple, const ArgList &Args) {
return WantsPthread;
}
+static bool WantsComponentModelThreadContext(const llvm::Triple &Triple, const ArgList &Args) {
+ // If the target is WASIP3, then enable the
+ // component-model-thread-context feature by default, unless explicitly
+ // disabled.
+ return Triple.getOSName() == "wasip3" &&
----------------
TartanLlama wrote:
Yeah that makes sense, I've changed it so that the decision is made exactly once in the Clang driver. This means that tools using `llc` directly would need to pass the feature themselves, and other frontends would need to do the same, which I think is reasonable
https://github.com/llvm/llvm-project/pull/175800
More information about the llvm-commits
mailing list