diff options
| author | Bobby <[email protected]> | 2026-02-20 11:42:21 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-02-20 11:42:21 +0530 |
| commit | cbadff7321682914e9473134d838b2c268fb6afd (patch) | |
| tree | b5d29d4c11ac0c9147b23bebbf26ce5e06c02d07 /system/libraries/build.zig | |
| parent | 98d2a091f675f2bf6987098ffe11f765835459c0 (diff) | |
| download | akiba-cbadff7321682914e9473134d838b2c268fb6afd.tar.xz akiba-cbadff7321682914e9473134d838b2c268fb6afd.zip | |
feat: Implement parameter parsing library and integrate into existing binaries
Diffstat (limited to 'system/libraries/build.zig')
| -rw-r--r-- | system/libraries/build.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/system/libraries/build.zig b/system/libraries/build.zig index a38cbc3..50c3071 100644 --- a/system/libraries/build.zig +++ b/system/libraries/build.zig @@ -14,9 +14,8 @@ pub fn build(b: *std.Build) void { while (lib_iter.next() catch null) |entry| { if (entry.kind != .directory) continue; - const lib_name = entry.name; + const lib_name = b.allocator.dupe(u8, entry.name) catch continue; const lib_file = std.fmt.allocPrint(b.allocator, "{s}/{s}.zig", .{ lib_name, lib_name }) catch continue; - defer b.allocator.free(lib_file); std.fs.cwd().access(lib_file, .{}) catch continue; |
