================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to