CMakeLists: don't always optimize for size

Going forward the optimization flags should be set for a platform,
rather than for each individual module.
This commit is contained in:
Julian Oes 2016-09-27 16:35:35 +02:00
parent 7240fc78fe
commit fd403b733d
3 changed files with 4 additions and 6 deletions

View File

@ -38,7 +38,7 @@ endif()
px4_add_module(
MODULE lib__ecl
STACK_MAIN 6000
COMPILE_FLAGS ${MODULE_CFLAGS} -Os
COMPILE_FLAGS ${MODULE_CFLAGS}
SRCS
attitude_fw/ecl_controller.cpp
attitude_fw/ecl_pitch_controller.cpp
@ -62,4 +62,4 @@ px4_add_module(
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :

View File

@ -35,10 +35,9 @@ px4_add_module(
MAIN base
STACK_MAIN 4096
COMPILE_FLAGS
-Os
SRCS
base.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :

View File

@ -35,10 +35,9 @@ px4_add_module(
MAIN ringbuffer
STACK_MAIN 4096
COMPILE_FLAGS
-Os
SRCS
ringbuffer.cpp
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
# vim: set noet ft=cmake fenc=utf-8 ff=unix :