Set page size to 16KB for aarch64 macos

With this tweak, `test-std` pass on Apple Silicon + BigSur.
This commit is contained in:
Jakub Konka 2020-10-28 17:39:44 +01:00 committed by Andrew Kelley
parent bb3dfd2708
commit 17575019a0

View File

@ -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,
};