-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Build plan should more clearly distinguish custom build steps #5719
Comments
For now a better heuristic might be |
I think that would be |
Huh, I never thought about the |
The key is documented in build scripts and the manifest reference. It doesn't really talk about the binary/crate name of the build script, presumably because that's not something that's really relevant to most users. |
Is changing the |
It might get complicated if something like #5855 is implemented. Something like Doctest would appear with |
cc #5508 which also discusses the problems with |
…r=alexcrichton Distinguish custom build invocations Distinguish building a build script from running it, in build plan invocations. Fixes #5719
Currently each build script in a build produces two invocations in the build plan--one to compile the build script, and one to run it. However, they both have
"target_kind": ["custom-build"]
so it's difficult to distinguish them when consuming a build plan.In my
cargo-build-plan-graph
tool I wound up using a heuristic that I do not love. It would be better if they had uniquetarget_kind
keys or some other straightforward way to distinguish them.Here's a sample build plan from sccache.
The text was updated successfully, but these errors were encountered: