summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-21 13:44:22 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-03-21 13:44:22 -0400
commit58e0505068d8d4decf9db2f96cb94743002b97c9 (patch)
tree9ee9a8f5fc9fdcbec706cb12604a46808dd97677
parent890e85c8d1badedf4922260d369ba629fd4327ff (diff)
downloadroux-58e0505068d8d4decf9db2f96cb94743002b97c9.tar.gz
compile tests with debug options
-rwxr-xr-xlisc/tools/abitest.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/lisc/tools/abitest.sh b/lisc/tools/abitest.sh
index 164aff2..096c4ef 100755
--- a/lisc/tools/abitest.sh
+++ b/lisc/tools/abitest.sh
@@ -16,8 +16,14 @@ then
fi
$OCAML tools/abi.ml $TMP c ssa
- ./$QBE -o $TMP/callee.s $TMP/callee.ssa || failure "qbe"
- c99 -o $TMP/abitest $TMP/caller.c $TMP/callee.s || failure "cc + linking"
- $TMP/abitest || failure "runtime"
+
+ ./$QBE -o $TMP/callee.s $TMP/callee.ssa
+ || failure "qbe"
+
+ c99 -g -o $TMP/abitest $TMP/caller.c $TMP/callee.s
+ || failure "cc + linking"
+
+ $TMP/abitest
+ || failure "runtime"
rm -fr $TMP