From 58e0505068d8d4decf9db2f96cb94743002b97c9 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 21 Mar 2016 13:44:22 -0400 Subject: compile tests with debug options --- lisc/tools/abitest.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'lisc/tools/abitest.sh') 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 -- cgit 1.4.1