Skip to content

Commit b72f461

Browse files
Federico Fissorecmaglie
Federico Fissore
authored andcommitted
Fixed compilation error when targetting Mega. Error is caused by arduino#2039 and this fix is just a workaround
1 parent 6f74581 commit b72f461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hardware/arduino/avr/platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ compiler.c.cmd=avr-gcc
1717
compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD -flto
1818
# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
1919
# This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain
20-
compiler.c.elf.flags=-Os -Wl,--gc-sections -w -flto
20+
compiler.c.elf.flags=-w -flto -Os -Wl,--gc-sections
2121
compiler.c.elf.cmd=avr-gcc
2222
compiler.S.flags=-c -g -x assembler-with-cpp
2323
compiler.cpp.cmd=avr-g++

0 commit comments

Comments
 (0)