Skip to content

Commit 3cf5b0c

Browse files
dcpleungkartben
authored andcommitted
cmake: toolchain/xcc,xt-clang: LD flag for multi-core env vars
When using one set of environment variables for multiple cores compilation, we also need to supply the core name in linker flags. So add that to TOOLCHAIN_LD_FLAGS. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
1 parent 5615e46 commit 3cf5b0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/toolchain/xcc/common.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ zephyr_get(XTENSA_CORE_${NORMALIZED_BOARD_TARGET})
2323
if(DEFINED XTENSA_CORE_${NORMALIZED_BOARD_TARGET})
2424
set(XTENSA_CORE_LOCAL_C_FLAG "--xtensa-core=${XTENSA_CORE_${NORMALIZED_BOARD_TARGET}}")
2525
list(APPEND TOOLCHAIN_C_FLAGS "--xtensa-core=${XTENSA_CORE_${NORMALIZED_BOARD_TARGET}}")
26+
list(APPEND TOOLCHAIN_LD_FLAGS "--xtensa-core=${XTENSA_CORE_${NORMALIZED_BOARD_TARGET}}")
2627
else()
2728
# Not having XTENSA_CORE is not necessarily fatal as
2829
# the toolchain can have a default core configuration to use.

0 commit comments

Comments
 (0)