-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
prefer-dynamic has bad error messages when rlibs are available #12133
Comments
The underlying cause of this behavior is the When specified, the linking portion of the compiler will refuse to even look for There are a few ways to go about this:
I would personally vote for option 3, what do others think? I'm also changing the title to reflect the prefer-dynamic bug here. |
Thanks Alex. I see it in your Travis CI log now: |
The new methodology can be found in the re-worded comment, but the gist of it is that -C prefer-dynamic doesn't turn off static linkage. The error messages should also be a little more sane now. Closes #12133
internal: Fix crate names for release
Sometimes linking against 'rlib' ones fails. Latest repro case is:
Last command output:
Changing the
crate_type
from 'rlib' to 'dylib' solves it.Environment:
The text was updated successfully, but these errors were encountered: