-
Notifications
You must be signed in to change notification settings - Fork 13.4k
--print native-static-libs
with --emit metadata
prints nothing
#137384
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
Comments
@rustbot claim |
From what @bjorn3 says this might not be possible. Dependency format information is not calculated if not linking (where "linking" includes making a staticlib). rust/compiler/rustc_metadata/src/dependency_format.rs Lines 87 to 89 in 6e23095
This matters because we need some way of filtering for statically linked libs ( rust/compiler/rustc_codegen_ssa/src/back/link.rs Lines 263 to 267 in 6e23095
Otherwise we could print all native libraries but not filter for static ones specifically. Which is not what |
Emit warning while outputs is not exe and prints linkage info cc rust-lang#137384 ```bash $ rustc +stage1 /dev/null --print native-static-libs --crate-type staticlib --emit metadata warning: skipping link step due to conflict: cannot output linkage information without emitting executable note: consider emitting executable to print link information warning: 1 warning emitted ```
Rollup merge of #138139 - xizheyin:issue-137384, r=ChrisDenton Emit warning while outputs is not exe and prints linkage info cc #137384 ```bash $ rustc +stage1 /dev/null --print native-static-libs --crate-type staticlib --emit metadata warning: skipping link step due to conflict: cannot output linkage information without emitting executable note: consider emitting executable to print link information warning: 1 warning emitted ```
Uh oh!
There was an error while loading. Please reload this page.
It should be possible to print the necessary native libs without actually creating the static library. However, combining
--emit metadata
with--print native-static-libs
does not print anything.I tried this:
I expected to see this printed to the console:
Instead, this happened: the output is empty.
If I run without
--emit metadata
it works:However, this also creates
libnull.a
.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: