diff options
| author | Baitinq <[email protected]> | 2025-01-11 17:16:27 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-01-11 17:16:27 +0100 |
| commit | 2fc385bb53b1ca507c71954e297ec8db4796b227 (patch) | |
| tree | c8ca7b34c94e7ef247b634067f41c0edb14fff02 /build.zig | |
| parent | Parser: fix tests (diff) | |
| download | pry-lang-2fc385bb53b1ca507c71954e297ec8db4796b227.tar.gz pry-lang-2fc385bb53b1ca507c71954e297ec8db4796b227.tar.bz2 pry-lang-2fc385bb53b1ca507c71954e297ec8db4796b227.zip | |
Misc: Improve lsp errors
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build.zig b/build.zig index 8774f19..50c7bc4 100644 --- a/build.zig +++ b/build.zig @@ -38,6 +38,17 @@ pub fn build(b: *std.Build) void { // step when running `zig build`). b.installArtifact(exe); + // This is needed for better lsp errors + const exe_check = b.addExecutable(.{ + .name = "interpreter-lsp", + .root_source_file = b.path("src/main.zig"), + .target = target, + .optimize = optimize, + }); + + const check = b.step("check", "Check if foo compiles"); + check.dependOn(&exe_check.step); + // This *creates* a Run step in the build graph, to be executed when another // step is evaluated that depends on it. The next line below will establish // such a dependency. |