Refer to original file in error messages.

This commit is contained in:
Michael Droettboom 2012-10-24 12:17:50 -04:00
parent 184230fcf2
commit 6211d0519e

View file

@ -599,6 +599,7 @@ $(OBJDIR)/%.cpp: %.pde
# the ino -> cpp -> o file # the ino -> cpp -> o file
$(OBJDIR)/%.cpp: %.ino $(OBJDIR)/%.cpp: %.ino
$(ECHO) '#include <Arduino.h>' > $@ $(ECHO) '#include <Arduino.h>' > $@
$(ECHO) '#line 1 "$<"' > $@
$(CAT) $< >> $@ $(CAT) $< >> $@
$(OBJDIR)/%.o: $(OBJDIR)/%.cpp $(OBJDIR)/%.o: $(OBJDIR)/%.cpp