mirror of https://github.com/ARMmbed/mbed-os.git
CMake: set develop optimizations
parent
d3d88e3be9
commit
5128b02686
|
@ -7,6 +7,7 @@ if(MBED_TOOLCHAIN STREQUAL "GCC_ARM")
|
|||
list(APPEND c_compile_options
|
||||
"-c"
|
||||
"-std=gnu11"
|
||||
"-Os"
|
||||
)
|
||||
target_compile_options(mbed-os
|
||||
PUBLIC
|
||||
|
@ -17,6 +18,7 @@ if(MBED_TOOLCHAIN STREQUAL "GCC_ARM")
|
|||
"-std=gnu++14"
|
||||
"-fno-rtti"
|
||||
"-Wvla"
|
||||
"-Os"
|
||||
)
|
||||
target_compile_options(mbed-os
|
||||
PUBLIC
|
||||
|
@ -46,6 +48,7 @@ if(MBED_TOOLCHAIN STREQUAL "GCC_ARM")
|
|||
elseif(MBED_TOOLCHAIN STREQUAL "ARM")
|
||||
list(APPEND c_compile_options
|
||||
"-std=gnu11"
|
||||
"-Os"
|
||||
)
|
||||
target_compile_options(mbed-os
|
||||
PUBLIC
|
||||
|
@ -56,6 +59,7 @@ elseif(MBED_TOOLCHAIN STREQUAL "ARM")
|
|||
"-std=gnu++14"
|
||||
"-fno-rtti"
|
||||
"-fno-c++-static-destructors"
|
||||
"-Os"
|
||||
)
|
||||
target_compile_options(mbed-os
|
||||
PUBLIC
|
||||
|
|
Loading…
Reference in New Issue