cargo rustc --crate-type=lib,cdylib
only uplifts the first artifact kind
#14498
Labels
--crate-type=lib,cdylib
only uplifts the first artifact kind
#14498
Problem
When manually specifying the crate-type on the command line via
--crate-type=type1,type2
, the artifacts are correctly built (visible in thedeps
directory with a hash), but only the firstcrate-type
artifact is uplifted totarget/$profile
.Steps
Create a library with
When building with
cargo build
orcargo rustc
target/$profile
contains both the rlib and the cdylib artifacts.When using cargo rustc
--crate-type=cdylib,lib
instead, only the first artifact kind will be uplifted from the deps directory. (When reproducing, remember to run cargo clean after each step to delete the previous artifacts)The order of the
Possible Solution(s)
No response
Notes
No response
Version
Tested on stable:
and nightly:
The text was updated successfully, but these errors were encountered: