Skip to content
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

cargo rustc -- --crate-type cdylib stopped working #7339

Closed
lu-zero opened this issue Sep 7, 2019 · 1 comment · Fixed by #7755
Closed

cargo rustc -- --crate-type cdylib stopped working #7339

lu-zero opened this issue Sep 7, 2019 · 1 comment · Fixed by #7755
Labels
C-bug Category: bug

Comments

@lu-zero
Copy link
Contributor

lu-zero commented Sep 7, 2019

Right now on stable cargo rustc -- --crate-type cdylib correctly produces the cdylib.
Nightly fails since cargo tries to pass the dependencies as .rmeta instead of .rlib.

@alexcrichton
Copy link
Member

This is due to pipelining support being added to Cargo, but this was never really intended to work and/or going to work. Crate type output is so intrusive that Cargo needs to know about it, so cargo rustc can't be used to update the crate types via the CLI (which Cargo doesn't parse, it just forwards to rustc)

bors added a commit that referenced this issue Jan 13, 2020
Make cargo-rustc crate-type-aware

This fixes #7339 and makes the usage of `cargo rustc` less surprising overall.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants