summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-04-06 00:56:21 -0700
committerOri Bernstein <ori@eigenstate.org>2017-04-06 00:56:21 -0700
commitb59fd65e31976c41651aab4ffbb16dd58deebbae (patch)
tree0d718121b59b162a7877abce4beef45ab10bab86 /6
parent1265f41334e895d9b52e80918a57c19c86d6e66d (diff)
downloadmc-b59fd65e31976c41651aab4ffbb16dd58deebbae.tar.gz
When we ask for asm, don't delete it.
Diffstat (limited to '6')
-rw-r--r--6/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/main.c b/6/main.c
index 40ceef6..ce298e6 100644
--- a/6/main.c
+++ b/6/main.c
@@ -102,7 +102,7 @@ static void assemble(char *asmsrc, char *path)
We don't want to keep the asm source around, but it's useful
for deubgging without mapping to line numbers.
*/
- if (asmsyntax != Plan9)
+ if (asmsyntax != Plan9 && !writeasm)
unlink(asmsrc);
}