Skip to content

Commit 06b94fb

Browse files
matthijskooijmanadamvoss
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 52a10c6 commit 06b94fb

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
@@ -25,7 +25,7 @@ compiler.c.elf.flags=-Os -Wl,--gc-sections
2525
compiler.S.cmd=arm-none-eabi-gcc
2626
compiler.S.flags=-c -g -x assembler-with-cpp -mthumb
2727
compiler.cpp.cmd=arm-none-eabi-g++
28-
compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++98 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
28+
compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -MMD
2929
compiler.ar.cmd=arm-none-eabi-ar
3030
compiler.ar.flags=rcs
3131
compiler.objcopy.cmd=arm-none-eabi-objcopy

0 commit comments

Comments
 (0)