Skip to content

Commit 2fdba84

Browse files
committed
Update to c/c++ 17
1 parent ab9a4a3 commit 2fdba84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ compiler.warning_flags.all=-Wall -Wextra
3030

3131
compiler.path={runtime.tools.gcc-arm-none-eabi-9.3.1-1.path}/bin/
3232
compiler.c.cmd=arm-none-eabi-gcc
33-
compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} {build.float_flags} -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD
33+
compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} {build.float_flags} -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration -std=gnu17 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD
3434
compiler.c.elf.cmd=arm-none-eabi-g++
3535
compiler.c.elf.flags=-Os -Wl,--gc-sections -save-temps
3636
compiler.S.cmd=arm-none-eabi-gcc
3737
compiler.S.flags=-c -g -x assembler-with-cpp
3838
compiler.cpp.cmd=arm-none-eabi-g++
39-
compiler.cpp.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} {build.float_flags} -Wno-unused-parameter -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD
39+
compiler.cpp.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} {build.float_flags} -Wno-unused-parameter -std=gnu++17 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD
4040
compiler.ar.cmd=arm-none-eabi-ar
4141
compiler.ar.flags=rcs
4242
compiler.objcopy.cmd=arm-none-eabi-objcopy

0 commit comments

Comments
 (0)