-
Notifications
You must be signed in to change notification settings - Fork 24
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
mustang doesn't work with lto #72
Comments
This also happens with profile.dev for me. The error output is a different one though.
Release is as you described. Tried gcc, ld.lld and mold. |
Is this still an issue? I tried to reproduce it on current |
It still reproduces for me with the latest nightly. |
I am using a nightly, just not the latest one, because that fails with I can now reproduce the issue - I was using a mustang target but had forgotten to add |
Mustang still doesn't support LTO, however origin has now moved out to its own repo and become a standalone usable project, and it does support LTO. And origin-studio provides a tiny std-like API for it. So if you want the Rust program startup and shutdown parts of mustang and don't need a full |
This is now fixed in #239, which is now released in mustang 0.14.4. Mustang now supports LTO! |
This reproduces with just adding
to the top-level Cargo.toml in the mustang repo, and running the
hello
example. It gets lots of undefined references to things likecore::panicking::assert_failed_inner
. See also #22 (comment).The text was updated successfully, but these errors were encountered: