From 48cc2559298732a1e527e6494b9f16b94f78970e Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Tue, 13 Oct 2015 14:29:58 -0400 Subject: improve error detection in mcc --- minic/mcc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'minic/mcc') diff --git a/minic/mcc b/minic/mcc index 76e0603..509f337 100755 --- a/minic/mcc +++ b/minic/mcc @@ -8,5 +8,6 @@ if [ -z "$SRC" ]; then exit 1 fi -./minic < $SRC | ../lisc/lisc - > $TMP -[ -s $TMP ] && cc $TMP +./minic < $SRC > $TMP.ssa || exit 1 +../lisc/lisc $TMP.ssa > $TMP || exit 1 +cc $TMP -- cgit 1.4.1