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:
parent
cc07117bca
commit
2dee8a4733
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue