-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
rust: Fix link arguments #12367
rust: Fix link arguments #12367
Conversation
0630265
to
3af3a96
Compare
@dcbaker I think the CRT changes you made in #11902 never worked. You made a typo there: https://github.com/mesonbuild/meson/pull/11902/files#diff-76c8a26e81a7fd37cca2db144349e88dbcf9be56e32954ea722a9d106e4e400dR2049-R2050. This PR fix that typo, but then the CI fails with:
|
ef6ecb2
to
b234ea5
Compare
Reduce code duplication by iterating target.get_dependencies() instead of iterating target.link_targets and target.link_whole_targets separately. This has the extra benefit of taking into account transitive dependencies. - For indirect C ABI static libraries, this adds missing "-l static=" arguments. - For indirect Rust ABI dependencies, this adds missing "-L" arguments. - Verbatim modifier was used only for link_whole_targets, it's now always used when available. Fixes: mesonbuild#11694
It seems broken and fails on our CI: rust-lang/rust#116674
b234ea5
to
8851911
Compare
@dcbaker CRT issue has been worked around now, this PR is now ready for review. |
Reduce code duplication by iterating target.get_dependencies() instead
of iterating target.link_targets and target.link_whole_targets
separately. This has the extra benefit of taking into account
transitive dependencies.
arguments.
always used when available.
Fixes: #11694