Skip to content

Commit

Permalink
Update build.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
SnorlaxAssist authored Aug 21, 2024
1 parent 3d576e2 commit 98738b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,18 @@ pub fn build(b: *std.Build) void {
const optimize = b.standardOptimizeOption(.{});

const lib = b.addStaticLibrary(.{
.name = "zig-lz4",
.name = "lz4",
.root_source_file = b.path(LIB_SRC),
.target = target,
.optimize = optimize,
});

const lz4_module = b.addModule("zig-lz4", .{
.root_source_file = b.path("src/lib.zig"),
});

lz4_module.linkLibrary(lib);

const FLAGS = [_][]const u8{
"-DLZ4LIB_API=extern\"C\"",
};
Expand Down

0 comments on commit 98738b3

Please sign in to comment.