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
+2 -2
View File
@@ -38,7 +38,7 @@ endif()
px4_add_module( px4_add_module(
MODULE lib__ecl MODULE lib__ecl
STACK_MAIN 6000 STACK_MAIN 6000
COMPILE_FLAGS ${MODULE_CFLAGS} -Os COMPILE_FLAGS ${MODULE_CFLAGS}
SRCS SRCS
attitude_fw/ecl_controller.cpp attitude_fw/ecl_controller.cpp
attitude_fw/ecl_pitch_controller.cpp attitude_fw/ecl_pitch_controller.cpp
@@ -62,4 +62,4 @@ px4_add_module(
DEPENDS DEPENDS
platforms__common platforms__common
) )
# vim: set noet ft=cmake fenc=utf-8 ff=unix : # vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN base MAIN base
STACK_MAIN 4096 STACK_MAIN 4096
COMPILE_FLAGS COMPILE_FLAGS
-Os
SRCS SRCS
base.cpp base.cpp
DEPENDS DEPENDS
platforms__common platforms__common
) )
# vim: set noet ft=cmake fenc=utf-8 ff=unix : # vim: set noet ft=cmake fenc=utf-8 ff=unix :
+1 -2
View File
@@ -35,10 +35,9 @@ px4_add_module(
MAIN ringbuffer MAIN ringbuffer
STACK_MAIN 4096 STACK_MAIN 4096
COMPILE_FLAGS COMPILE_FLAGS
-Os
SRCS SRCS
ringbuffer.cpp ringbuffer.cpp
DEPENDS DEPENDS
platforms__common platforms__common
) )
# vim: set noet ft=cmake fenc=utf-8 ff=unix : # vim: set noet ft=cmake fenc=utf-8 ff=unix :