Small fix to testing to check if libc is linked
This commit is contained in:
@@ -44,6 +44,12 @@ pub fn build(b: *std.Build) !void {
|
||||
.root_module = exe_mod,
|
||||
});
|
||||
|
||||
const lib = b.addLibrary(.{
|
||||
.name = "squashfs",
|
||||
.root_module = mod,
|
||||
});
|
||||
|
||||
b.installArtifact(lib);
|
||||
b.installArtifact(exe);
|
||||
const run_step = b.step("run", "Run the app");
|
||||
const run_cmd = b.addRunArtifact(exe);
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ const Reader = std.Io.Reader;
|
||||
const builtin = @import("builtin");
|
||||
|
||||
const config = if (builtin.is_test) .{
|
||||
.use_c_libs = true,
|
||||
.allow_lzo = false,
|
||||
.use_c_libs = builtin.link_libc == true,
|
||||
.allow_lzo = false, // Change once LZO compilation is fixed
|
||||
} else @import("config");
|
||||
|
||||
const c = @cImport({
|
||||
|
||||
Reference in New Issue
Block a user