aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--default.o.do2
1 files changed, 1 insertions, 1 deletions
diff --git a/default.o.do b/default.o.do
index 5c3e0e9..adab49b 100644
--- a/default.o.do
+++ b/default.o.do
@@ -1,5 +1,5 @@
#!/bin/bash
redo-ifchange "$0" "default.o.do" "$2.c"
. loadargs "compile"
-gcc -std=c11 -MD -MF "$2.d" -c "${args[@]}" -o "$3" "$2.c"
+gcc -std=c11 -MD -MF "$2.d" -c "${args[@]}" -o "$3" "$2.c" || exit 1
redo-ifchange "$2.d" $(sed ':a;/\\$/{s/[^:]*: //;N;s/ \\\n//;ba}' <"$2.d")