-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
No support for lto build modes? after 1.67.1 #146
Comments
Is it the most recent version? What platform? Do you have your project available somewhere or can you make a minimal example? Works for me... |
I am on latest 1.67.1 stable on ARM64. I'll try to prepare minimal reproducer |
Is it the most recent version of cargo-show-asm? |
yes, latest released 0.2.14 |
This is happening to me in linux (well, WSL). Latest rust, latest cargo-show-asm. Minimal reproducible example:
Edit: I should specify, I got the same error as @redbaron |
@reisnera this works for me fine on linux. Can you nuke |
Sure, see attached flies |
|
|
Hey @pacak thanks for the reply. If I don't try to use lto in this new/empty project it works just fine. I tried disabling incremental compilation by setting CARGO_INCREMENTAL=0 and it still doesn't work (I do not have this set to anything normally, which I assume means incremental compilation is enabled by default). |
Managed to reproduce it locally by upgrading rustc to 1.67.1, was working fine with 1.66.0. Will poke around. |
rust-lang/rust#103610 - caused by this it seems |
A workaround is to pass |
Actually |
Awesome thanks! Great tool btw! Question for my learning: wouldn't lto affect the generated asm as it would affect inlining and subsequent optimizations? |
It might affect the final result in some cases - cross crate inlining perhaps, it should still produce the same results for a single create code because of |
Makes sense, thank you again!
…On Thu, Mar 9, 2023, 8:51 AM pacak ***@***.***> wrote:
It might affect the final result in some cases - cross crate inlining
perhaps, it should still produce the same results for a single create code
because of -Ccodegen-units=1. Situation can probably be improved but for
now I'm just fixing a regression.
—
Reply to this email directly, view it on GitHub
<#146 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAM3DYII6H3VEJJRO4I33VLW3HU6FANCNFSM6AAAAAAVQXDC54>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
When I enable
lto = "thin"
in the release profilecargo asm
stops showing assembly output for my binary:The text was updated successfully, but these errors were encountered: