Skip to content

Commit d1714a9

Browse files
committed
[sam] Added -MMD flag to tell compiler to produce dependencies files
Now a full rebuild of the sketch is triggered only if needed.
1 parent 0824abf commit d1714a9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build/shared/revisions.txt

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ ARDUINO 1.5.9
44
[ide]
55
* Updated AStyle formatter to v2.04: http://astyle.sourceforge.net/notes.html
66

7+
[core]
8+
* sam: added -MMD flag to let gcc produce dependency files (full rebuild on Arduino Due is now triggered only if needed)
9+
710
The following changes are included also in the Arduino IDE 1.0.7:
811

912
[libraries]

hardware/arduino/sam/platform.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ version=1.5.8
1212

1313
compiler.path={runtime.ide.path}/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/
1414
compiler.c.cmd=arm-none-eabi-gcc
15-
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf
15+
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
1616
compiler.c.elf.cmd=arm-none-eabi-gcc
1717
compiler.c.elf.flags=-Os -Wl,--gc-sections
1818
compiler.S.flags=-c -g -x assembler-with-cpp
1919
compiler.cpp.cmd=arm-none-eabi-g++
20-
compiler.cpp.flags=-c -g -Os -w -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf
20+
compiler.cpp.flags=-c -g -Os -w -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
2121
compiler.ar.cmd=arm-none-eabi-ar
2222
compiler.ar.flags=rcs
2323
compiler.objcopy.cmd=arm-none-eabi-objcopy

0 commit comments

Comments
 (0)