-
Notifications
You must be signed in to change notification settings - Fork 13k
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
bootstrap: support building rustc with monolithic lto #49175
Comments
rustc is primarily composed of dylibs, which as the error message states are incompatible with LTO. So an LTO'd rustc is fundamentally impossible, at least until we get rid of the dylibs (they're currently required for compiler plugins and proc macros). |
Hmm so forcing everything to be linked statically is not possible at the moment, right? |
No, it is not possible. |
I'm going to close this as it's not feasible today and probably not something we'll want to do for quite some time if ever. |
@Mark-Simulacrum uhm, #49180 says that it would desirable to bootstrap with monolithic lto |
True, but I don't think a dedicated issue will help move this along at this point -- I don't particularly care either way though. |
I would like to be able to locally build rustc with monolithic lto enabled (
-C lto
) however it seems that usinglto=true
insrc/Carto.toml
does not have any effect.RUSTFLAGS="-C lto" ./x.py build
fails as wellEdit: related: #49180
The text was updated successfully, but these errors were encountered: