WIP parsing
This commit is contained in:
@@ -80,12 +80,12 @@ pub fn build(b: *std.Build) void {
|
||||
.optimize = optimize,
|
||||
});
|
||||
const check = b.step("check", "Check if project compiles and tests pass, used by Zig Language Server");
|
||||
const check_unit_tests = b.addTest(.{
|
||||
.root_module = exe_mod,
|
||||
});
|
||||
// add unit tests to check step (gives lsp semantics in tests, but can result in no semantics)
|
||||
// const check_unit_tests = b.addTest(.{
|
||||
// .root_module = exe_mod,
|
||||
// });
|
||||
// const run_check_unit_tests = b.addRunArtifact(check_unit_tests);
|
||||
// check.dependOn(&run_check_unit_tests.step);
|
||||
|
||||
const run_check_unit_tests = b.addRunArtifact(check_unit_tests);
|
||||
|
||||
check.dependOn(&run_check_unit_tests.step);
|
||||
check.dependOn(&exe_check.step);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user