-
-
Notifications
You must be signed in to change notification settings - Fork 407
[WIP] Fixes to the build runner as per zig/ziglang#30754 #2564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I'm not familiar with the build runner customizations made by zls, but would it be possible to "just" replace That would limit the customizations mainly to this function, and maybe make proposing to the zig core team a mechanism to provide a user-defined implementation feasible? |
|
Always follow the golden rule: and right now it isn't working :) |
It works? It works! Get that sucker on a PR, stat! 😄 I guess there is no need to make an effort to track the upstream (side-stream?) build runner then. I'll close this PR. |
@jozip I like writing code, but can't stand the slow, back and forth nature of the PR process |
Sure, I'll get to it. |
|
Rebasing the ZLS build runner based on changes from the Zig build runner is generally a welcome contribution. I have a similar change in #2510 (c8098a4) which has not been merged yet, and has gone out of date again. Also note that any unused or unnecessary code should be removed from the build runner instead of being commented out. |
Perhaps it's a dumb question, but why not write a purpose-built build runner for ZLS? Or is it strictly necessary that it remain a subset of Zig's? |
|
The code in the ZLS build runner is not a strict subset of the code in the Zig build runner. We do have a bunch of code that is specific to what ZLS needs. But there is also a lot of shared logic that is easier to keep in sync with Zig rather than re implementing it ourselves. We wouldn't gain anything from doing so and only make maintaining the build runner even more cumbersome. |
|
Alright, I see. |
The recent merge of https://codeberg.org/ziglang/zig/pulls/30754 broke our bespoke build runner. It has diverged significantly from
lib/compiler/build_runner.zigand it is starting to ache pretty bad working with it. So I figured it would be a good time to pull the recent runner from the compiler and smush the customizations on top and start documenting what goes where so it will be a bit easier to track and fix breaking changes in the future.Everything builds, but the tests fail due to no output from the runner. I'm sure it's something trivial that I've missed, but I'm now at a point where I do random pokes. So I think it's for the best to let this mess get some eyeballs other than mine. (Assuming this is a good approach to begin with.)