summary refs log tree commit diff
path: root/minic/mcc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-13 14:29:58 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-13 14:29:58 -0400
commit48cc2559298732a1e527e6494b9f16b94f78970e (patch)
tree84a16845b6711374a963f6aab03595eb35a1a7b4 /minic/mcc
parent8cfcd87e50121f20be175d341bfddd55e35ab7c2 (diff)
downloadroux-48cc2559298732a1e527e6494b9f16b94f78970e.tar.gz
improve error detection in mcc
Diffstat (limited to 'minic/mcc')
-rwxr-xr-xminic/mcc5
1 files changed, 3 insertions, 2 deletions
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