Merge pull request #98 from evestera/rustc-color-always

Propagate colored output from rustc
This commit is contained in:
olivia hugger 2018-11-26 11:11:35 +01:00 committed by GitHub
commit a15b276d96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,7 @@ fn compile_only(filename: &str) {
bar.set_message(format!("Compiling {}...", filename).as_str()); bar.set_message(format!("Compiling {}...", filename).as_str());
bar.enable_steady_tick(100); bar.enable_steady_tick(100);
let compilecmd = Command::new("rustc") let compilecmd = Command::new("rustc")
.args(&[filename, "-o", "temp"]) .args(&[filename, "-o", "temp", "--color", "always"])
.output() .output()
.expect("fail"); .expect("fail");
bar.finish_and_clear(); bar.finish_and_clear();