Small fix to testing to check if libc is linked

This commit is contained in:
Caleb J. Gardner
2026-02-12 02:19:38 -06:00
parent fd9e3d595b
commit 0076294675
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -44,6 +44,12 @@ pub fn build(b: *std.Build) !void {
.root_module = exe_mod, .root_module = exe_mod,
}); });
const lib = b.addLibrary(.{
.name = "squashfs",
.root_module = mod,
});
b.installArtifact(lib);
b.installArtifact(exe); b.installArtifact(exe);
const run_step = b.step("run", "Run the app"); const run_step = b.step("run", "Run the app");
const run_cmd = b.addRunArtifact(exe); const run_cmd = b.addRunArtifact(exe);
+2 -2
View File
@@ -6,8 +6,8 @@ const Reader = std.Io.Reader;
const builtin = @import("builtin"); const builtin = @import("builtin");
const config = if (builtin.is_test) .{ const config = if (builtin.is_test) .{
.use_c_libs = true, .use_c_libs = builtin.link_libc == true,
.allow_lzo = false, .allow_lzo = false, // Change once LZO compilation is fixed
} else @import("config"); } else @import("config");
const c = @cImport({ const c = @cImport({