When building simple project i get:
arm-none-eabi-size --format=berkeley -t Project.elf
text data bss dec hex filename
25312 36 20960 46308 b4e4 Project.elf
However when one of cpp files inside project has individual settings (i.e. optimization level), command is not executed.
When i reset configuration to default, size is printed again.