From c06c1346f6cdce980b05c411e9f83a8966be3762 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 27 Sep 2026 15:45:04 -0700 Subject: [PATCH] self-hosted wasm backend is as robust as LLVM --- src/target.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/target.zig b/src/target.zig index 6234c11a146b18c45b6b36ecf12138edebb99a5c..59c94d1a85f1ea91b7be410d3630529aeac46094 100644 --- a/src/target.zig +++ b/src/target.zig @@ -311,6 +311,7 @@ pub fn hasNewLinker(ofmt: std.Target.ObjectFormat) bool { pub fn selfHostedBackendIsAsRobustAsLlvm(target: *const std.Target) bool { if (comptime builtin.cpu.arch.endian() == .big) return false; // https://github.com/ziglang/zig/issues/25961 if (target.cpu.arch.isSpirV()) return true; + if (target.cpu.arch.isWasm()) return true; if (target.cpu.arch == .x86_64 and target.ptrBitWidth() == 64) { if (target.os.tag == .illumos) { // https://github.com/ziglang/zig/issues/25699 -- 2.54.0