1# SPDX-License-Identifier: Apache-2.0 2 3include(${ZEPHYR_BASE}/cmake/toolchain/xcc/common.cmake) 4 5set(COMPILER xt-clang) 6set(CC clang) 7set(C++ clang++) 8set(LINKER xt-ld) 9 10# xt-clang uses GNU Assembler (xt-as) based on binutils. 11# However, CMake doesn't recognize it when invoking through xt-clang. 12# This results in CMake going through all possible combinations of 13# command line arguments while invoking xt-clang to determine 14# assembler vendor. This multiple invocation of xt-clang unnecessarily 15# lengthens the CMake phase of build, especially when xt-clang needs to 16# obtain license information from remote licensing servers. So here 17# forces the assembler ID to be GNU to speed things up a bit. 18set(CMAKE_ASM_COMPILER_ID "GNU") 19 20message(STATUS "Found toolchain: xt-clang (${XTENSA_TOOLCHAIN_PATH})") 21