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");
let llc_output = Command::new("llc")
.arg("-filetype=obj")
.arg(ll_filename)
.args(&["-filetype=obj", ll_filename, "-o", obj_filename])
.output()
.expect("Failed to run llc");
println!("{}", String::from_utf8_lossy(&llc_output.stdout));
println!("{}", String::from_utf8_lossy(&llc_output.stderr));
let gcc_output = Command::new("gcc")
.arg(format!("-o{}", bin_filename))
.arg(obj_filename)
.args(&["-o", bin_filename, &obj_filename])
.output()
.expect("failed to run gcc");