Skip to content

Commit 12522f3

Browse files
authored
Merge pull request #475 from Batchyx/master
Fix generate_assembly for cpp files.
2 parents 7a14d67 + 697c95e commit 12522f3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Arduino.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ $(OBJDIR)/%.s: %.ino $(COMMON_DEPS) | $(OBJDIR)
12621262

12631263
$(OBJDIR)/%.s: %.cpp $(COMMON_DEPS) | $(OBJDIR)
12641264
@$(MKDIR) $(dir $@)
1265-
$(CXX) -x c++ -include $(ARDUINO_HEADER) -MMD -S -fverbose-asm $(CPPFLAGS) $(CXXFLAGS) $< -o $@
1265+
$(CXX) -x c++ -MMD -S -fverbose-asm $(CPPFLAGS) $(CXXFLAGS) $< -o $@
12661266

12671267
# core files
12681268
$(OBJDIR)/core/%.c.o: $(ARDUINO_CORE_PATH)/%.c $(COMMON_DEPS) | $(OBJDIR)

HISTORY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ A Makefile for Arduino Sketches
44
The following is the rough list of changes that went into different versions.
55
I tried to give credit whenever possible. If I have missed anyone, kindly add it to the list.
66

7+
### In Development
8+
- Fix: Do not include the Arduino header when calling generate_assembly on .cpp files. (https://github.com/Batchyx)
9+
710
### 1.5.2 (2017-01-11)
811

912
- New: Add LTO support for users with avr-gcc > 4.9 (issue #446 & #456) (https://github.com/sej7278)

0 commit comments

Comments
 (0)