Skip to content

Commit

Permalink
compile: Early exit on failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mewmew committed Jun 18, 2016
1 parent ddf6245 commit 247662d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ if [ $# -lt 1 ]; then
fi
f=$1
uclang -o a.ll "${f}"
if [ $? -ne 0 ]; then
echo "FAILURE: ${f}"
exit 1
fi
llvm-link -S -o out.ll a.ll testdata/uc.ll

echo "SUCCESS: ${f}"

0 comments on commit 247662d

Please sign in to comment.