anchao commented on code in PR #12634: URL: https://github.com/apache/nuttx/pull/12634#discussion_r1666887939
########## arch/sim/src/cmake/Toolchain.cmake: ########## @@ -94,6 +94,11 @@ else() endif() endif() +if(CONFIG_DEBUG_OPT_UNUSED_SECTIONS) + add_link_options(-Wl,--gc-sections) + add_compile_options(-ffunction-sections -fdata-sections) Review Comment: Makefile has these flags but CMake not https://github.com/apache/nuttx/blob/master/boards/sim/sim/sim/scripts/Make.defs#L117-L118 https://github.com/apache/nuttx/blob/master/boards/sim/sim/sim/scripts/Make.defs#L279 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
