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 --lib -- --crate-type cdylib results in crate required to be available in rlib format #7899

Closed
dvc94ch opened this issue Feb 18, 2020 · 2 comments
Labels
C-bug Category: bug

Comments

@dvc94ch
Copy link

dvc94ch commented Feb 18, 2020

Building examples for android works great cargo rustc --example NAME -- --crate-type cdylib. When trying cargo rustc --lib -- --crate-type cdylib I get crate required to be available in rlib format.

I found multiple closed issues here related to this #7339 #6160, and was wondering what the correct approach is. Since the crate type can be set in the Cargo.toml I think a reasonable case can be made that overriding it from the cli is in the domain of cargo features (as opposed to it's a rustc flag we won't support it)

Related to #4881.

@dvc94ch dvc94ch added the C-bug Category: bug label Feb 18, 2020
@ehuss
Copy link
Contributor

ehuss commented Feb 25, 2020

I'm going to close this as a duplicate of #4881. If you have additional requirements of controlling the crate-type that aren't already captured in that issue, it is probably best to just add a comment over there.

@ehuss ehuss closed this as completed Feb 25, 2020
@dvc94ch
Copy link
Author

dvc94ch commented Feb 26, 2020

In case you hadn't noticed, #4881 is a feature request, this is a bug report. The difference is that the one requests something to be added while the other requests something to be removed.

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

No branches or pull requests

2 participants