From a65544356cdfb9d584d5a954ba1e4b0d583131a5 Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 26 Dec 2016 12:05:29 -0800 Subject: [PATCH] Fix bug in delete routine --- main.schala | 2 +- src/compilation.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.schala b/main.schala index 6d7c389..45daf6c 100644 --- a/main.schala +++ b/main.schala @@ -1,5 +1,5 @@ fn main() - 25 % 20 +1 + 2 + 3 + 4 * 2 end diff --git a/src/compilation.rs b/src/compilation.rs index 329a41a..bcdba6c 100644 --- a/src/compilation.rs +++ b/src/compilation.rs @@ -138,9 +138,9 @@ pub fn compilation_sequence(ast: AST, sourcefile: &str) { .output() .expect("failed to run gcc"); - for filename in [ll_filename, obj_filename].iter() { + for filename in [obj_filename].iter() { Command::new("rm") - .arg(ll_filename) + .arg(filename) .output() .expect(&format!("failed to run rm {}", filename)); }