Skip to content

Commit c84ff4d

Browse files
matthijskooijmancmaglie
authored andcommitted
Enable C++11 support
This uses the gnu++11 standard, which is C++11 with GNU extensions. C++11 should be full compatible with the previously used C++98 standards, so all pre-existing sketches should continue to work.
1 parent 7ec3549 commit c84ff4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ compiler.c.elf.flags={compiler.warning_flags} -Os -Wl,--gc-sections
2727
compiler.c.elf.cmd=avr-gcc
2828
compiler.S.flags=-c -g -x assembler-with-cpp
2929
compiler.cpp.cmd=avr-g++
30-
compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++98 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD
30+
compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD
3131
compiler.ar.cmd=avr-ar
3232
compiler.ar.flags=rcs
3333
compiler.objcopy.cmd=avr-objcopy

0 commit comments

Comments
 (0)