Skip to content

Commit 52a10c6

Browse files
matthijskooijmanadamvoss
authored andcommitted
Explicitely specify C and C++ standards to use
This does not change anything, it just makes the defaults explicit.
1 parent d3f8873 commit 52a10c6

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
@@ -19,13 +19,13 @@ compiler.warning_flags.all=-Wall -Wextra
1919

2020
compiler.path={runtime.tools.arm-none-eabi-gcc.path}/bin/
2121
compiler.c.cmd=arm-none-eabi-gcc
22-
compiler.c.flags=-c -g -Os {compiler.warning_flags} -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
22+
compiler.c.flags=-c -g -Os {compiler.warning_flags} -std=gnu89 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -MMD
2323
compiler.c.elf.cmd=arm-none-eabi-gcc
2424
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} -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++98 -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)