diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 14:08:53 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:16 -0300 |
| commit | 17908d6d60850d9131b12e480b21e446b0b8eb9a (patch) | |
| tree | 3ae320efa41aa86337d7a1b0e6af5690090891e6 /build.zig | |
| parent | 7cf2c9947ce0a5529b15835b7e1eecb30a2e68c2 (diff) | |
| download | pardes-17908d6d60850d9131b12e480b21e446b0b8eb9a.tar.gz pardes-17908d6d60850d9131b12e480b21e446b0b8eb9a.zip | |
Lspinfo lists pardes's own dependency imports only for a file in pardes's tree
The in-process ZLS's report listed the module map of the build pardes came from (vaxis, ghostty and the rest) for any .zig file, a project that has none of them included. It now lists them only for a file in that tree (project_root, a build option), and says there are none for any other.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -752,6 +752,8 @@ pub fn build(b: *std.Build) void { for ([_]?*std.Build.Step.Options{ opts, gui_opts }) |maybe| if (maybe) |o| { o.addOption([]const []const u8, "module_names", mod_names); o.addOption([]const []const u8, "module_roots", mod_roots); + // Whose imports those are: a .zig file outside this tree has none of them. + o.addOption([]const u8, "project_root", b.build_root.path orelse ""); }; const iso_off = b.addOptions(); |
