Stop skipping cdylib

This commit is contained in:
hyd-dev 2021-02-14 21:57:31 +08:00
parent c0eb13ba2a
commit eec5423aa7
No known key found for this signature in database
GPG Key ID: 74FA7FD5B8DA14B8

View File

@ -608,15 +608,6 @@ fn phase_cargo_rustc(mut args: env::Args) {
let target_crate = is_target_crate();
let print = get_arg_flag_value("--print").is_some(); // whether this is cargo passing `--print` to get some infos
// cdylib is just skipped, we cannot interpret it and do not need it
// for the rest of the build either.
if get_arg_flag_value("--crate-type").as_deref() == Some("cdylib") {
if verbose {
eprint!("[cargo-miri rustc] (cdylib skipped)");
}
return;
}
let store_json = |info: CrateRunInfo| {
let filename = out_filename("", "");
if verbose {