Skip to content

Commit 2dee8a4

Browse files
dcpleungnashif
authored andcommitted
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 <[email protected]>
1 parent cc07117 commit 2dee8a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/toolchain/xcc/generic.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set(COMPILER xcc)
66
set(OPTIMIZE_FOR_DEBUG_FLAG "-O0")
77
set(CC xcc)
88
set(C++ xc++)
9+
set(LINKER xt-ld)
910

1011
list(APPEND TOOLCHAIN_C_FLAGS
1112
-imacros${ZEPHYR_BASE}/include/zephyr/toolchain/xcc_missing_defs.h

0 commit comments

Comments
 (0)