diff --git a/test/CBackend/Makefile b/test/CBackend/Makefile index 7e5ba7ddefb..1ad566c63c8 100644 --- a/test/CBackend/Makefile +++ b/test/CBackend/Makefile @@ -19,4 +19,5 @@ Output/%.to: Output/%.c (rm -f $@; $(FAILURE) $@ ) Output/%.c: %.ll Output/.dir $(LAS) $(LDIS) - $(LAS) < $< | $(LDIS) -c > $@ + $(LAS) < $< | $(LDIS) -c > $@ || \ + (rm -f $@; $(FAILURE) $@ )