-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Miscompilation on i686-pc-windows-msvc with Fat LTO #112576
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
Comments
may or may not be related to #109114 |
There's no mention of |
@lqd Do you mean I should use |
no, but that flag is known to be broken already |
No, it's an internal flag (basically only intended for rustc to use) that has known issues on windows. I meant that:
|
@kdy1 are you still affected by this issue? Can you provide an update or close - if it's the case? Thanks |
Relabeling issues which don't have a runnable reproduction (as opposed to not having a minimized one) to the new label S-needs-repro. |
Closing as I don't have time to create a minimal repro |
I tried this code:
https://github.com/swc-project/swc/blob/275db1baec0046c15e35456c268295c5e7a42517/crates/swc_ecma_codegen/src/lib.rs#L2435-L2463
(May not be exact, just a guess based on the test failure)
I expected to see this happen: Binaries behave identically regardless of CPU arch.
Instead, this happened: CI for publishing action failed.
Meta
I'm trying to enable LTO for release builds of swc, with swc-project/swc#7509. But it seems like
rustc
miscompiles on some platforms if I enable LTO.Full log: https://github.com/swc-project/swc/actions/runs/5212808850/jobs/9406918334?pr=7509
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: