Deleted some code in compilation

This commit is contained in:
greg 2017-01-18 03:19:15 -08:00
parent 3e231b4715
commit 751c6f65bd
1 changed files with 2 additions and 5 deletions

View File

@ -29,17 +29,14 @@ pub fn compilation_sequence(ast: AST, sourcefile: &str) {
.expect("Error writing file"); .expect("Error writing file");
let llc_output = Command::new("llc") let llc_output = Command::new("llc")
.arg("-filetype=obj") .args(&["-filetype=obj", ll_filename, "-o", obj_filename])
.arg(ll_filename)
.output() .output()
.expect("Failed to run llc"); .expect("Failed to run llc");
println!("{}", String::from_utf8_lossy(&llc_output.stdout));
println!("{}", String::from_utf8_lossy(&llc_output.stderr)); println!("{}", String::from_utf8_lossy(&llc_output.stderr));
let gcc_output = Command::new("gcc") let gcc_output = Command::new("gcc")
.arg(format!("-o{}", bin_filename)) .args(&["-o", bin_filename, &obj_filename])
.arg(obj_filename)
.output() .output()
.expect("failed to run gcc"); .expect("failed to run gcc");