From c84ff4d1778592009724f2078c7f6453a31b1a3f Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 7 Jul 2014 19:43:51 +0200 Subject: 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. --- platform.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform.txt') diff --git a/platform.txt b/platform.txt index 4f09a4b..f2a27f7 100644 --- a/platform.txt +++ b/platform.txt @@ -27,7 +27,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++98 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD +compiler.cpp.flags=-c -g -Os {compiler.warning_flags} -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD compiler.ar.cmd=avr-ar compiler.ar.flags=rcs compiler.objcopy.cmd=avr-objcopy -- cgit v1.2.3-18-g5258