@@ -31,15 +31,20 @@ compiler.warning_flags.default=
3131compiler.warning_flags.more=-Wall -Wno-expansion-to-defined
3232compiler.warning_flags.all=-Wall -Wextra -Wno-expansion-to-defined
3333
34+ # maintain retrocompatibility
35+ compiler.optimization_flags=-Os
36+ compiler.optimization_flags.release=-Os
37+ compiler.optimization_flags.debug=-Og -g3
38+
3439compiler.path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
3540compiler.c.cmd=arm-none-eabi-gcc
36- compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD
41+ compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g {compiler.optimization_flags} {compiler.warning_flags} -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD
3742compiler.c.elf.cmd=arm-none-eabi-g++
38- compiler.c.elf.flags=-Os -Wl,--gc-sections -save-temps
43+ compiler.c.elf.flags={compiler.optimization_flags} -Wl,--gc-sections -save-temps
3944compiler.S.cmd=arm-none-eabi-gcc
4045compiler.S.flags=-c -g -x assembler-with-cpp -MMD
4146compiler.cpp.cmd=arm-none-eabi-g++
42- compiler.cpp.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD
47+ compiler.cpp.flags=-mcpu={build.mcu} -mthumb -c -g {compiler.optimization_flags} {compiler.warning_flags} -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD
4348compiler.ar.cmd=arm-none-eabi-ar
4449compiler.ar.flags=rcs
4550compiler.objcopy.cmd=arm-none-eabi-objcopy
0 commit comments