authorgravatar for doogie1012@gmail.comJae B <doogie1012@gmail.com> 2024-02-22 19:03:09+11:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2024-02-22 21:33:58+02:00
log241e100827fffde710eb0722691eeee592854744
tree1be686c7673ce511c2dba2bad4c740f6390a7e40
parentdd1fc1cb8c2258256566fd0035deb6fbf700fc69

update root.os.system override to require "system" field, this allows easier overriding of os.heap.page_allocator


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

lib/std/os.zig+1-1
......@@ -59,7 +59,7 @@ test {
5959/// Applications can override the `system` API layer in their root source file.
6060/// Otherwise, when linking libc, this is the C API.
6161/// When not linking libc, it is the OS-specific system interface.
62pub const system = if (@hasDecl(root, "os") and root.os != @This())
62pub const system = if (@hasDecl(root, "os") and @hasDecl(root.os, "system") and root.os != @This())
6363 root.os.system
6464else if (use_libc)
6565 std.c