summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-01-07 22:27:16 -0800
committerOri Bernstein <ori@eigenstate.org>2019-01-07 22:27:16 -0800
commit6ba50de2f15f5f52e154f053a077d354789f0a2b (patch)
treec746ae0df8d5a4a0d139aa9c752cd6aee7ecdcec
parenta34e80b18736f80370487804998b1ffd2de2f978 (diff)
downloadmc-6ba50de2f15f5f52e154f053a077d354789f0a2b.tar.gz
Don't leave asm in /tmp on any system.
-rw-r--r--6/main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/6/main.c b/6/main.c
index 3034277..5e3d6da 100644
--- a/6/main.c
+++ b/6/main.c
@@ -124,11 +124,7 @@ assemble(char *asmsrc, char *path)
if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
die("Couldn't run assembler");
}
- /*
- We don't want to keep the asm source around, but it's useful
- for deubgging without mapping to line numbers.
- */
- if (asmsyntax != Plan9 && !writeasm)
+ if (!writeasm)
unlink(asmsrc);
}