-
Notifications
You must be signed in to change notification settings - Fork 14
Fix cargo-gpu in build script failing when called by Miri or Clippy #101
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
Miri works, but ran into some trouble with clippy: The install action when using a local path to rust-gpu seems to use the wrong toolchain for some reason. Will have a go at it myself.
|
Having the same problem with Clippy. Additionally, when testing locally just now (with
So, removing |
Cargo clippy now works as well. I also unified env var cleaning in spirv-builder and added env var debug printing, so any issues like this should be easier to debug in the future. @tuguzT feel free to give this branch another try :D |
@Firestar99, thanks, I'll try this out until tomorrow |
I tested this PR (and Additionally, I haven't known it is possible to use PR's git commit hash when linking to the original repository, could have simplified testing for me if I had known it earlier. |
You can also use local paths like |
FYI @tuguzT, we need to wait for rust-gpu's PR to merge anyway before we can update the spirv-builder rev to a commit on master (since the commits will be rebased) |
Oh, I see... |
I was about to do that 🤣 |
This is great! I was also hoping this would also generate build script warnings when clippy is running for |
I don't think anyone has tried to run clippy with the spirv target. Technically, clippy doesn't need a codegen backend, it only needs rustc to understand that the spirv targets exist, that would be the only thing our codegen backend would be needed for. |
Should I post it in this repo or rust-gpu? Right now I only see warnings (like Rust-GPU/rust-gpu#324, which might have unexpected consequences) when I also get compilation errors, but I'd love to see them all the time. Both for |
I'd open it on rust-gpu, since it would be useful over there as well. The problem with build scripts is that you only ever see their output if they fail. So many add |
Actually you can propagate warnings using
|
To not spam this discussion, I created two issues:
|
I also opened #103 already |
Requires Rust-GPU/rust-gpu#335
See that PR for details as well
Resolves #93
Resolves #77