[clang] [lld] [llvm] [WebAssembly] WASIP3 and component model threading support (PR #175800)
Alex Crichton via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 18 15:01:53 PST 2026
================
@@ -120,6 +121,8 @@ void WebAssemblyTargetInfo::getTargetDefines(const LangOptions &Opts,
Builder.defineMacro("__wasm_tail_call__");
if (HasWideArithmetic)
Builder.defineMacro("__wasm_wide_arithmetic__");
+ if (HasComponentModelThreadContext)
+ Builder.defineMacro("__wasm_component_model_thread_context__");
----------------
alexcrichton wrote:
I think this'll be useful to have in wasi-libc, yeah, to enable conditional builds of wasm32-wasip3 with/without this feature.
https://github.com/llvm/llvm-project/pull/175800
More information about the cfe-commits
mailing list