1
Fork 0

Rustup and lazy_static version mismatch fix

fixes #2274
This commit is contained in:
Oliver Schneider 2017-12-15 10:02:39 +01:00
parent 86da435461
commit 8ddcb81a15
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9
10 changed files with 32 additions and 23 deletions

View file

@ -141,10 +141,12 @@ pub fn main() {
let args = std::iter::once(format!("--manifest-path={}", manifest_path)).chain(args);
if let Some(first) = target.kind.get(0) {
if target.kind.len() > 1 || first.ends_with("lib") {
println!("lib: {}", target.name);
if let Err(code) = process(std::iter::once("--lib".to_owned()).chain(args)) {
std::process::exit(code);
}
} else if ["bin", "example", "test", "bench"].contains(&&**first) {
println!("{}: {}", first, target.name);
if let Err(code) = process(
vec![format!("--{}", first), target.name]
.into_iter()