aboutsummaryrefslogtreecommitdiff
path: root/platform.txt
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2014-06-27 13:44:18 +0200
committerCristian Maglie <c.maglie@bug.st>2014-06-27 13:44:18 +0200
commit1decf99e10738d45960c8bf4b24f6f55974544eb (patch)
tree9211fec912f95abc339d4c71e6a7a0d5e335988e /platform.txt
parent0d40e5cace584c560091aea960f58cb1dc5a0dd9 (diff)
parent8cf34fd737279512772d984f5a639a53be5f3916 (diff)
Merge branch 'ide-1.5.7' into ide-1.5.x
Diffstat (limited to 'platform.txt')
-rw-r--r--platform.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/platform.txt b/platform.txt
index 58af56b..d81aef6 100644
--- a/platform.txt
+++ b/platform.txt
@@ -14,12 +14,14 @@ version=1.5.6
# Default "compiler.path" is correct, change only if you want to overidde the initial value
compiler.path={runtime.ide.path}/hardware/tools/avr/bin/
compiler.c.cmd=avr-gcc
-compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD
-compiler.c.elf.flags=-Os -Wl,--gc-sections
+compiler.c.flags=-c -g -Os -w -ffunction-sections -fdata-sections -MMD -flto
+# -w flag added to avoid printing a wrong warning http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59396
+# This is fixed in gcc 4.8.3 and will be removed as soon as we update the toolchain
+compiler.c.elf.flags=-w -flto -Os -Wl,--gc-sections
compiler.c.elf.cmd=avr-gcc
compiler.S.flags=-c -g -x assembler-with-cpp
compiler.cpp.cmd=avr-g++
-compiler.cpp.flags=-c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD
+compiler.cpp.flags=-c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -flto
compiler.ar.cmd=avr-ar
compiler.ar.flags=rcs
compiler.objcopy.cmd=avr-objcopy
@@ -77,8 +79,6 @@ recipe.size.regex.eeprom=^(?:\.eeprom)\s+([0-9]+).*
tools.avrdude.cmd.path={runtime.ide.path}/hardware/tools/avr/bin/avrdude
tools.avrdude.config.path={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf
-tools.avrdude.cmd.path.linux={runtime.ide.path}/hardware/tools/avrdude
-tools.avrdude.config.path.linux={runtime.ide.path}/hardware/tools/avrdude.conf
tools.avrdude.upload.params.verbose=-v -v -v -v
tools.avrdude.upload.params.quiet=-q -q