kconfig,toolchain: add an option for compiler save-temps
Add a Kconfig option to set the compiler save-temps flag and set the GCC implementation. This is very useful for troubleshooting macro expansion issues, having an option allows a user to set it like any other config option. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
d82175eadd
commit
3f8f7130e7
5 changed files with 20 additions and 0 deletions
|
@ -299,6 +299,11 @@ zephyr_compile_options($<TARGET_PROPERTY:compiler,no_common>)
|
|||
# @Intent: Set compiler specific flag for production of debug information
|
||||
zephyr_compile_options($<TARGET_PROPERTY:compiler,debug>)
|
||||
|
||||
if(CONFIG_COMPILER_SAVE_TEMPS)
|
||||
# @Intent: Set compiler specific flag for saving temporary object files
|
||||
zephyr_compile_options($<TARGET_PROPERTY:compiler,save_temps>)
|
||||
endif()
|
||||
|
||||
if(CONFIG_COMPILER_COLOR_DIAGNOSTICS)
|
||||
# @Intent: Set compiler specific flag for diagnostic messages
|
||||
zephyr_compile_options($<TARGET_PROPERTY:compiler,diagnostic>)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue