Changes
4 changed files (+82/-2)
-
-
@@ -43,6 +43,15 @@ };// Executable { const calloc = b.option( bool, "calloc", "Use libc allocator, to inspect allocations using Valgrind", ) orelse false; const options = b.addOptions(); options.addOption(bool, "calloc", calloc); const exe = b.addExecutable(.{ .name = "plac", .root_module = b.createModule(.{
-
@@ -54,6 +63,11 @@ });exe.root_module.addImport("core", core); exe.root_module.addImport("clap", clap); exe.root_module.addOptions("build_config", options); if (calloc) { exe.linkLibC(); } b.installArtifact(exe); }
-
-
-
@@ -16,6 +16,7 @@ // SPDX-License-Identifier: Apache-2.0const std = @import("std"); const clap = @import("clap"); const build_config = @import("build_config"); const exit = @import("./exit.zig").exit; const server = @import("./commands/server.zig");
-
@@ -42,7 +43,9 @@ \\); pub fn main() !void { var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); var arena = std.heap.ArenaAllocator.init( if (build_config.calloc) std.heap.c_allocator else std.heap.page_allocator, ); defer arena.deinit(); const allocator = arena.allocator();
-
-
-
@@ -8,7 +8,8 @@ "reuse@5.0.2","dprint@0.49.1", "zig@0.14.0", "zls@0.14.0", "uncrustify@0.80" "uncrustify@0.80", "valgrind@3.24.0" ], "shell": { "scripts": {
-
-
-
@@ -564,6 +564,68 @@ "store_path": "/nix/store/074blln3yn5bbahzh6g366wgh8cz6wld-vala-0.56.17"} } }, "valgrind@3.24.0": { "last_modified": "2025-04-13T09:22:33Z", "resolved": "github:NixOS/nixpkgs/18dd725c29603f582cf1900e0d25f9f1063dbf11#valgrind", "source": "devbox-search", "version": "3.24.0", "systems": { "aarch64-linux": { "outputs": [ { "name": "out", "path": "/nix/store/d9fgg4pvp82mp4qnhbnawnlw0a6cvczw-valgrind-3.24.0", "default": true }, { "name": "man", "path": "/nix/store/5kmk79fciznha16f7y8jrcvy6lj8zd49-valgrind-3.24.0-man", "default": true }, { "name": "debug", "path": "/nix/store/98m2b30fqzd2dl2msf13n5gvg1xvs2jb-valgrind-3.24.0-debug" }, { "name": "dev", "path": "/nix/store/pmda2kd2w60np66vr0na8pvwvdr3953w-valgrind-3.24.0-dev" }, { "name": "doc", "path": "/nix/store/k63q4m1q1jvsf80hix0abkxs7l18fpam-valgrind-3.24.0-doc" } ], "store_path": "/nix/store/d9fgg4pvp82mp4qnhbnawnlw0a6cvczw-valgrind-3.24.0" }, "x86_64-linux": { "outputs": [ { "name": "out", "path": "/nix/store/cawr37dyifswi0zfkx1gygc7h16489g4-valgrind-3.24.0", "default": true }, { "name": "man", "path": "/nix/store/2f2gf5w46j4927kqmx1pmb13frjwcidr-valgrind-3.24.0-man", "default": true }, { "name": "debug", "path": "/nix/store/4b1kfv7m3n2zlv7qy2vyg33yvy28dzcc-valgrind-3.24.0-debug" }, { "name": "dev", "path": "/nix/store/hlly45zaqv5l4xhbcd6m55w396pgg06p-valgrind-3.24.0-dev" }, { "name": "doc", "path": "/nix/store/pwj9w02s8y026harrxqq2l5ygnh3i0af-valgrind-3.24.0-doc" } ], "store_path": "/nix/store/cawr37dyifswi0zfkx1gygc7h16489g4-valgrind-3.24.0" } } }, "zig@0.14.0": { "last_modified": "2025-03-23T05:31:05Z", "resolved": "github:NixOS/nixpkgs/dd613136ee91f67e5dba3f3f41ac99ae89c5406b#zig",
-