提交 bb2c1f76 编写于 作者: E Elly Jones 提交者: Brian Anderson

cargo: complain if rustc fails

上级 f8d06a2a
......@@ -308,7 +308,11 @@ fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
}
log #fmt["Installing: %s", name];
let old = fs::list_dir(".");
run::run_program("rustc", [name + ".rc"]);
let p = run::program_output("rustc", [name + ".rc"]);
if p.status != 0 {
error(#fmt["rustc failed: %d %s", p.status, p.err]);
ret;
}
let new = fs::list_dir(".");
let created =
vec::filter::<str>(new, { |n| !vec::member::<str>(n, old) });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册