chore: upgrade zig to 0.12.0-dev.1828+225fe6ddb (#7671)

* chore: upgrade zig to 0.12.0-dev.1828+225fe6ddb

* open as iterable

* fix building identifier cache

* fix windows build

* fix linux build

* fix linux build
This commit is contained in:
dave caruso
2023-12-16 00:14:15 -08:00
committed by GitHub
parent 925a94ffe6
commit 369e3022e4
179 changed files with 3681 additions and 3688 deletions

View File

@@ -59,7 +59,7 @@ const CAllocator = struct {
fn alignedAlloc(len: usize, alignment: usize) ?[*]u8 {
if (comptime FeatureFlags.log_allocations) std.debug.print("Malloc: {d}\n", .{len});
var ptr: ?*anyopaque = if (mimalloc.canUseAlignedAlloc(len, alignment))
const ptr: ?*anyopaque = if (mimalloc.canUseAlignedAlloc(len, alignment))
mimalloc.mi_malloc_aligned(len, alignment)
else
mimalloc.mi_malloc(len);
@@ -120,7 +120,7 @@ const ZAllocator = struct {
fn alignedAlloc(len: usize, alignment: usize) ?[*]u8 {
if (comptime FeatureFlags.log_allocations) std.debug.print("Malloc: {d}\n", .{len});
var ptr = if (mimalloc.canUseAlignedAlloc(len, alignment))
const ptr = if (mimalloc.canUseAlignedAlloc(len, alignment))
mimalloc.mi_zalloc_aligned(len, alignment)
else
mimalloc.mi_zalloc(len);
@@ -180,7 +180,7 @@ const HugeAllocator = struct {
assert(len > 0);
assert(std.math.isPowerOfTwo(alignment));
var slice = std.os.mmap(
const slice = std.os.mmap(
null,
len,
std.os.PROT.READ | std.os.PROT.WRITE,