-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
using ~/.cargo/config.toml to enable cranelift results in a confusing error when bootstrapping rustc #135300
Comments
The failure happens during bootstrap compilation itself, which is the first thing we compile on bootstrapping. In order to give a friendly message, what we have to do is:
I strongly believe this is too much to give a error message just for a slightly better error message than the current one (I even think the current one is quite clear already). Even with a nice error message, there is no way to use different backends in I am going to close the issue as this isn't something we can consider doing it. |
reopening this because i found a potential workaround: setting the environment variable this will override the global config and eliminate the error entirely. |
Why should we override the backend? The purpose was making the error message more clear, not ignoring the cargo/config.toml backend. |
The problem is that there is a confusing error message. This can be fixed either by making the error message less confusing, or by removing it entirely. rustc effectively has its own build system, and in many places already overrides the global cargo config. |
That would have side effects like overriding the project-specific |
the offending config:
the errror:
reproduction steps:
build/
./x doc library/core
(probably any build command works)there's a lot of workarounds for this, but i was only able to diagnose it on a hunch, so at the very least the error message should be more clear.
The text was updated successfully, but these errors were encountered: