Deleted some code in compilation
This commit is contained in:
parent
3e231b4715
commit
751c6f65bd
@ -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");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user