mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
Set page size to 16KB for aarch64 macos
With this tweak, `test-std` pass on Apple Silicon + BigSur.
This commit is contained in:
parent
bb3dfd2708
commit
17575019a0
@ -16,6 +16,10 @@ const testing = std.testing;
|
||||
/// https://github.com/ziglang/zig/issues/2564
|
||||
pub const page_size = switch (builtin.arch) {
|
||||
.wasm32, .wasm64 => 64 * 1024,
|
||||
.aarch64 => switch (builtin.os.tag) {
|
||||
.macos, .ios, .watchos, .tvos => 16 * 1024,
|
||||
else => 4 * 1024,
|
||||
},
|
||||
else => 4 * 1024,
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user