Skip to content

Commit 17ee380

Browse files
earlephilhowerd-a-v
authored andcommitted
Move to -std=g++11 from -std=c++11 (#6339)
Looking at other projects, they're all building using gnu extensions (-std=gnu++11). We're already embedding gnu-specific pragmas for compile options, so I see no reason not to fall in line w/others on this. Fixes #4639
1 parent 4e7f5af commit 17ee380

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ build.sslflags=
3434

3535
build.exception_flags=-fno-exceptions
3636
build.stdcpp_lib=-lstdc++
37+
build.stdcpp_level=-std=gnu++11
3738

3839
build.float=-u _printf_float -u _scanf_float
3940
build.led=
@@ -57,7 +58,7 @@ compiler.c.elf.cmd=xtensa-lx106-elf-gcc
5758
compiler.c.elf.libs=-lhal -lphy -lpp -lnet80211 {build.lwip_lib} -lwpa -lcrypto -lmain -lwps -lbearssl -laxtls -lespnow -lsmartconfig -lairkiss -lwpa2 {build.stdcpp_lib} -lm -lc -lgcc
5859

5960
compiler.cpp.cmd=xtensa-lx106-elf-g++
60-
compiler.cpp.flags=-c {compiler.warning_flags} -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections {build.exception_flags} {build.sslflags}
61+
compiler.cpp.flags=-c {compiler.warning_flags} -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 {build.stdcpp_level} -MMD -ffunction-sections -fdata-sections {build.exception_flags} {build.sslflags}
6162

6263
compiler.as.cmd=xtensa-lx106-elf-as
6364

0 commit comments

Comments
 (0)