jerpelea opened a new pull request, #21269: URL: https://github.com/apache/nuttx/pull/21269
## Summary When CMake configures multiple languages (e.g. C, CXX, ASM), directory COMPILE_OPTIONS is populated multiple times, causing NUTTX_EXTRA_FLAGS in platform.cmake to accumulate duplicate compiler options. When using the Ninja generator, these duplicated flags are passed to the linker without automatic deduplication, causing duplicate CFLAGS in final linking. This patch deduplicates NUTTX_EXTRA_FLAGS in platform.cmake across architectures and in CMakeLists.txt before target_link_libraries. ## Impact RELEASE ## Testing CI -- 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]
