diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2014-07-07 19:43:02 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-07-16 13:06:09 +0200 |
commit | 7ec354959ad2a797e4dc1fe51988cfc4bce6a35c (patch) | |
tree | 1b35a2940035afc7022311bf217f05210c41b8d3 | |
parent | 83fab1343607abee3569f7187e58cac7c02846dc (diff) |
Explicitely specify C and C++ standards to use
This does not change anything, it just makes the defaults explicit.
-rw-r--r-- | platform.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform.txt b/platform.txt index 2908dbe..4f09a4b 100644 --- a/platform.txt +++ b/platform.txt @@ -20,14 +20,14 @@ compiler.warning_flags.all=-Wall -Wextra # Default "compiler.path" is correct, change only if you want to overidde the initial value compiler.path={runtime.tools.avr-gcc.path}/bin/ compiler.c.cmd=avr-gcc -compiler.c.flags=-c -g -Os {compiler.warning_flags} -ffunction-sections -fdata-sections -MMD +compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu89 -ffunction-sections -fdata-sections -MMD # -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={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} -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD +compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++98 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD compiler.ar.cmd=avr-ar compiler.ar.flags=rcs compiler.objcopy.cmd=avr-objcopy |