Skip to content

Commit 6220cbc

Browse files
committed
fix: kcl zig lib build scripts
Signed-off-by: Peefy <xpf6677@163.com>
1 parent d7e4af4 commit 6220cbc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

zig/build.zig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ pub fn build(b: *std.Build) void {
1717

1818
const os = target.query.os_tag orelse builtin.os.tag;
1919

20-
const lib = b.addStaticLibrary(.{
20+
const lib = b.addLibrary(.{
2121
.name = "kcl_lib_zig",
22-
// In this case the main source file is merely a path, however, in more
23-
// complicated build scripts, this could be a generated file.
2422
.root_source_file = b.path("src/root.zig"),
2523
.target = target,
2624
.optimize = optimize,
25+
.kind = .static,
2726
});
2827

2928
lib.linkLibC();

0 commit comments

Comments
 (0)