mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
Prevent compile parts of rustc when using cargo dev ra-setup
This commit is contained in:
parent
70c46de012
commit
6af969379e
@ -68,10 +68,11 @@ fn inject_deps_into_manifest(
|
||||
});
|
||||
|
||||
// format a new [dependencies]-block with the new deps we need to inject
|
||||
let mut all_deps = String::from("[dependencies]\n");
|
||||
let mut all_deps = String::from("[target.'cfg(NOT_A_PLATFORM)'.dependencies]\n");
|
||||
new_deps.for_each(|dep_line| {
|
||||
all_deps.push_str(&dep_line);
|
||||
});
|
||||
all_deps.push_str("\n[dependencies]\n");
|
||||
|
||||
// replace "[dependencies]" with
|
||||
// [dependencies]
|
||||
|
Loading…
Reference in New Issue
Block a user