From 35ee3747ebe344b619c66b23053d3f2495956423 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 25 May 2026 14:11:04 -0700 Subject: [PATCH] Maker.Step: avoid unnecessary compilation failure On s390x the cache line size is 256 so this check was failing. That's not useful, just check only for more common cache line sizes. --- lib/compiler/Maker/Step.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compiler/Maker/Step.zig b/lib/compiler/Maker/Step.zig index e9669a9118a30f91a1eee73ac95b90e2e0cce53f..b4fd26fe66c7ab94dba29b35bafec882fd2b8723 100644 --- a/lib/compiler/Maker/Step.zig +++ b/lib/compiler/Maker/Step.zig @@ -73,7 +73,7 @@ comptime { // Common cache line size is 128. This check prevents accidentally crossing // an additional cache line. In the future it might be nice to try to fit // this struct in 128 bytes or less. - assert(@sizeOf(@This()) <= 128 * 3); + if (std.atomic.cache_line <= 128) assert(@sizeOf(@This()) <= 128 * 3); } pub const Extended = union(enum) { -- 2.54.0