Skip to content
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

rustc: set --embed-bitcode=no if LTO is not enabled #3045

Open
ParkMyCar opened this issue Dec 5, 2024 · 0 comments · May be fixed by #3104
Open

rustc: set --embed-bitcode=no if LTO is not enabled #3045

ParkMyCar opened this issue Dec 5, 2024 · 0 comments · May be fixed by #3104

Comments

@ParkMyCar
Copy link
Contributor

Whether or not rustc embeds LLVM bitcode, which is used for LTO, is controlled via the --embed-bitcode flag. When LTO is disabled Cargo will automatically set --embed-bitcode=no because embedding bitcode can significantly slow down compile times (docs). It would be great if rules_rust could do the same!

@ParkMyCar ParkMyCar linked a pull request Dec 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants