mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-18 17:34:40 -04:00
revert deleting metadata id from filename of libstd.so
revert deleting metadata id from filename of libstd.so Signed-off-by: fengting <fengting11@huawei.com>
This commit is contained in:
@@ -1512,10 +1512,7 @@ impl<'a> Builder<'a> {
|
||||
Mode::Codegen => metadata.push_str("codegen"),
|
||||
_ => {}
|
||||
}
|
||||
|
||||
if mode != Mode::Std {
|
||||
cargo.env("__CARGO_DEFAULT_LIB_METADATA", &metadata);
|
||||
}
|
||||
cargo.env("__CARGO_DEFAULT_LIB_METADATA", &metadata);
|
||||
|
||||
if cmd == "clippy" {
|
||||
rustflags.arg("-Zforce-unstable-if-unmarked");
|
||||
|
||||
@@ -1798,7 +1798,7 @@ pub fn run_cargo(
|
||||
meta.len() == expected_len
|
||||
&& filename
|
||||
.strip_prefix(&prefix[..])
|
||||
.map(|s| s.ends_with(&extension[..]))
|
||||
.map(|s| s.starts_with('-') && s.ends_with(&extension[..]))
|
||||
.unwrap_or(false)
|
||||
});
|
||||
let max = candidates.max_by_key(|&&(_, _, ref metadata)| {
|
||||
|
||||
Reference in New Issue
Block a user