Skip to content

Commit 23d1998

Browse files
committed
added a check step to improve lsp performance
1 parent 67f03a8 commit 23d1998

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

build.zig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ pub fn build(b: *std.Build) void {
1313

1414
b.installArtifact(lib);
1515

16+
const check = b.addStaticLibrary(.{
17+
.name = "Fluent",
18+
.root_source_file = b.path("fluent.zig"),
19+
.target = target,
20+
.optimize = optimize,
21+
.use_llvm = false,
22+
.use_lld = false,
23+
});
24+
const check_step = b.step("check", "check if the code compiles");
25+
check_step.dependOn(&check.step);
26+
1627
_ = b.addModule("Fluent", .{
1728
.root_source_file = b.path("fluent.zig"),
1829
.target = target,

0 commit comments

Comments
 (0)