authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 14:11:04-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-25 18:54:36-07:00
log35ee3747ebe344b619c66b23053d3f2495956423
treecdcbea3410447f5380bdbfad476468eb046ec2d0
parentbd1b47733bc7565187d4a7c806afec03401bbf25

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.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/compiler/Maker/Step.zig+1-1
...@@ -73,7 +73,7 @@ comptime {...@@ -73,7 +73,7 @@ comptime {
73 // Common cache line size is 128. This check prevents accidentally crossing73 // Common cache line size is 128. This check prevents accidentally crossing
74 // an additional cache line. In the future it might be nice to try to fit74 // an additional cache line. In the future it might be nice to try to fit
75 // this struct in 128 bytes or less.75 // this struct in 128 bytes or less.
76 assert(@sizeOf(@This()) <= 128 * 3);76 if (std.atomic.cache_line <= 128) assert(@sizeOf(@This()) <= 128 * 3);
77}77}
7878
79pub const Extended = union(enum) {79pub const Extended = union(enum) {