-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
sccache causes flowistry-driver to fail #18
Comments
Thanks for the bug report @domenukk! It's almost certainly related to sccache. I've never tested with it. I'm not 100% sure if it it's even possible to integrate with sccache, because Flowistry uses a similar mechanism ( I noticed that Clippy also has an open issue on integrating with sccache: rust-lang/rust-clippy#3840 I'll play with this, but I wouldn't expect a fix unless Cargo gets patched to support this. Sorry! |
rustc
to learn about target-specific information
I encountered same problem. |
But isn't there a way to bypass |
Had the same problem with cg_clif: https://github.com/bjorn3/rustc_codegen_cranelift/issues/1091 The problem is indeed sccache. It detects whether it wraps rustc or a C compiler based on the executable name. This means that only "rustc" will be considered a rust compiler accepting the same arguments as rustc. If the executable is named anything different it will assume that is is gcc or clang and attempt to compile some C code using it to detect which C compiler is is exactly. I opened an issue about this a long time ago: mozilla/sccache#861 On cg_clif's side I worked around it by checking if RUSTC_WRAPPER is set to sccache and unsetting it if this is the case. |
When trying to use flowistry for the first time, I get this error message:
Could this be realted to sccache somehow? I'll try without next, but in any case it would be good to find another solution.
The text was updated successfully, but these errors were encountered: