aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2016-06-14 19:31:52 +0200
committerCristian Maglie <c.maglie@arduino.cc>2016-07-25 12:49:07 +0200
commit06868f4cd39a9dba82b5014d1208feb1e1f0d750 (patch)
tree573a2061e11a42eed9835afbb6d2ada1e41d7770
parent9a4f49b20eb6325abc81b9502e82d92f384ee4ac (diff)
Added -fpermissive flag.
This avoid build errors on old libraries. It may possibly be removed in the future after a period of transition.
-rw-r--r--platform.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform.txt b/platform.txt
index 50778f1..156f4df 100644
--- a/platform.txt
+++ b/platform.txt
@@ -25,7 +25,7 @@ compiler.c.elf.flags={compiler.warning_flags} -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 {compiler.warning_flags} -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD
+compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD
compiler.ar.cmd=avr-ar
compiler.ar.flags=rcs
compiler.objcopy.cmd=avr-objcopy