mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
std: workaround for #30842
This commit is contained in:
+3
-2
@@ -53,8 +53,9 @@ pub var next_mmap_addr_hint: ?[*]align(page_size_min) u8 = null;
|
||||
///
|
||||
/// On many systems, the actual page size can only be determined at runtime
|
||||
/// with `pageSize`.
|
||||
pub const page_size_min: usize = std.options.page_size_min orelse (page_size_min_default orelse
|
||||
@compileError(@tagName(builtin.cpu.arch) ++ "-" ++ @tagName(builtin.os.tag) ++ " has unknown page_size_min; populate std.options.page_size_min"));
|
||||
pub const page_size_min: usize = std.options.page_size_min orelse (page_size_min_default orelse 1);
|
||||
//`orelse 1` is a workaround for https://codeberg.org/ziglang/zig/issues/30842
|
||||
//@compileError(@tagName(builtin.cpu.arch) ++ "-" ++ @tagName(builtin.os.tag) ++ " has unknown page_size_min; populate std.options.page_size_min"));
|
||||
|
||||
/// comptime-known maximum page size of the target.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user