diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index 09819ac..477b176 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -599,6 +599,7 @@ $(OBJDIR)/%.cpp: %.pde # the ino -> cpp -> o file $(OBJDIR)/%.cpp: %.ino $(ECHO) '#include ' > $@ + $(ECHO) '#line 1 "$<"' > $@ $(CAT) $< >> $@ $(OBJDIR)/%.o: $(OBJDIR)/%.cpp