no println output

This commit is contained in:
Oliver Schneider 2016-08-17 17:42:59 +02:00
parent 6d7269a675
commit 32a0069f67
No known key found for this signature in database
GPG key ID: 56D6EEA0FC67AC46

View file

@ -143,17 +143,14 @@ pub fn main() {
let args = std::env::args().skip(2);
if let Some(first) = target.kind.get(0) {
if target.kind.len() > 1 || first.ends_with("lib") {
println!("compiling library");
if let Err(code) = process(std::iter::once("--lib".to_owned()).chain(args), &dep_path, &sys_root) {
std::process::exit(code);
}
} else if first == "bin" {
println!("compiling bin target `{}`", target.name);
if let Err(code) = process(vec!["--bin".to_owned(), target.name].into_iter().chain(args), &dep_path, &sys_root) {
std::process::exit(code);
}
} else if first == "example" {
println!("compiling example target `{}`", target.name);
if let Err(code) = process(vec!["--example".to_owned(), target.name].into_iter().chain(args), &dep_path, &sys_root) {
std::process::exit(code);
}