xuxin930 opened a new pull request, #12423: URL: https://github.com/apache/nuttx/pull/12423
## Summary ### Issue > [!CAUTION] > when repeatedly enabling and disabling string-controlled configurations, > the generated toolchain configuration may be incorrect. ```bash # init a cxx config cmake -B build -DBOARD_CONFIG=some-config-disable-cxx-exception # menuconfig enable CONFIG_CXX_EXCEPTION cmake --build build -t menuconfig # re build or re menuconfig cmake --build build ``` > [!NOTE] > Initialization compilation configuration >  > [!WARNING] > After the modification > we can tell that it has not taken effect >  ### Reason I found that this was because the compilation options we used **STRINGS** to control in the `Toolchain file` did not work as expected. ### Solution I plan to remove all **String-controlled** compile options and call `add_compile_options()` instead. for the toolchain linked library that needs to be found in the `platform.cmake`, the `execute_process` command is executed in the `congfigure` stage. at this time, the generator expression will not be parsed. so i use the currently configured options and regex parse the generator expression. ## Impact ## Testing CI build -- 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]
