cmake: xcc: use xt-ld linker cmake code

Shuffling of ld/lld on C library linking cmake code causes
issue with XCC as the HAL library is not being included in
linking. So make XCC to use xt-ld linker cmake code such
that the HAL library is included.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2024-10-11 10:16:04 -07:00 committed by Anas Nashif
commit 2dee8a4733

View file

@ -6,6 +6,7 @@ set(COMPILER xcc)
set(OPTIMIZE_FOR_DEBUG_FLAG "-O0") set(OPTIMIZE_FOR_DEBUG_FLAG "-O0")
set(CC xcc) set(CC xcc)
set(C++ xc++) set(C++ xc++)
set(LINKER xt-ld)
list(APPEND TOOLCHAIN_C_FLAGS list(APPEND TOOLCHAIN_C_FLAGS
-imacros${ZEPHYR_BASE}/include/zephyr/toolchain/xcc_missing_defs.h -imacros${ZEPHYR_BASE}/include/zephyr/toolchain/xcc_missing_defs.h