From f109e6839be04f105ede7c2aaecc034b26c0a613 Mon Sep 17 00:00:00 2001 From: Torsten Rasmussen Date: Thu, 13 Aug 2020 15:49:46 +0200 Subject: [PATCH] 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 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef6c1c4bedb..73a65c12374 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -200,7 +200,7 @@ if(CONFIG_CODING_GUIDELINE_CHECK) endif() # @Intent: Set compiler specific macro inclusion of AUTOCONF_H -zephyr_compile_options($${AUTOCONF_H}) +zephyr_compile_options("SHELL: $ ${AUTOCONF_H}") # @Intent: Set compiler specific flag for bare metal freestanding option zephyr_compile_options($) @@ -221,7 +221,7 @@ zephyr_compile_options($<$:$ # @Intent: Enforce standard integer type correspondance to match Zephyr usage. # (must be after compiler specific flags) -zephyr_compile_options($${ZEPHYR_BASE}/include/toolchain/zephyr_stdint.h) +zephyr_compile_options("SHELL: $ ${ZEPHYR_BASE}/include/toolchain/zephyr_stdint.h") # Common toolchain-agnostic assembly flags zephyr_compile_options(