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
+1 -1
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
-1
View File
@@ -35,7 +35,6 @@ 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
-1
View File
@@ -35,7 +35,6 @@ 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