cmake: toolchain disable -imacro deduplication
This commit introduces disabling of de-duplication for imacro. Disabling of de-duplication allows for a space between the imacro flag and arguments. This allows for broader range of compiler support in future. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
31a1411cbd
commit
f109e6839b
|
@ -200,7 +200,7 @@ if(CONFIG_CODING_GUIDELINE_CHECK)
|
|||
endif()
|
||||
|
||||
# @Intent: Set compiler specific macro inclusion of AUTOCONF_H
|
||||
zephyr_compile_options($<TARGET_PROPERTY:compiler,imacros>${AUTOCONF_H})
|
||||
zephyr_compile_options("SHELL: $<TARGET_PROPERTY:compiler,imacros> ${AUTOCONF_H}")
|
||||
|
||||
# @Intent: Set compiler specific flag for bare metal freestanding option
|
||||
zephyr_compile_options($<TARGET_PROPERTY:compiler,freestanding>)
|
||||
|
@ -221,7 +221,7 @@ zephyr_compile_options($<$<COMPILE_LANGUAGE:ASM>:$<TARGET_PROPERTY:asm,required>
|
|||
|
||||
# @Intent: Enforce standard integer type correspondance to match Zephyr usage.
|
||||
# (must be after compiler specific flags)
|
||||
zephyr_compile_options($<TARGET_PROPERTY:compiler,imacros>${ZEPHYR_BASE}/include/toolchain/zephyr_stdint.h)
|
||||
zephyr_compile_options("SHELL: $<TARGET_PROPERTY:compiler,imacros> ${ZEPHYR_BASE}/include/toolchain/zephyr_stdint.h")
|
||||
|
||||
# Common toolchain-agnostic assembly flags
|
||||
zephyr_compile_options(
|
||||
|
|
Loading…
Reference in a new issue