Commit 53316d5c authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

toolchain: rename xcc-clang to xt-clang



This reflects the actual compiler executable name of the Xtensa
LLVM/Clang compiler.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 6b9d3c0a
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -47,8 +47,13 @@ if("XCC_USE_CLANG" IN_LIST Deprecated_FIND_COMPONENTS)

  if ("${ZEPHYR_TOOLCHAIN_VARIANT}" STREQUAL "xcc"
      AND "$ENV{XCC_USE_CLANG}" STREQUAL "1")
    set(ZEPHYR_TOOLCHAIN_VARIANT xcc-clang CACHE STRING "Zephyr toolchain variant" FORCE)
    message(DEPRECATION "XCC_USE_CLANG is deprecated. Please set ZEPHYR_TOOLCHAIN_VARIANT to 'xcc-clang'")
    set(ZEPHYR_TOOLCHAIN_VARIANT xt-clang CACHE STRING "Zephyr toolchain variant" FORCE)
    message(DEPRECATION "XCC_USE_CLANG is deprecated. Please set ZEPHYR_TOOLCHAIN_VARIANT to 'xt-clang'")
  endif()

  if("${ZEPHYR_TOOLCHAIN_VARIANT}" STREQUAL "xcc-clang")
    set(ZEPHYR_TOOLCHAIN_VARIANT xt-clang CACHE STRING "Zephyr toolchain variant" FORCE)
    message(DEPRECATION "ZEPHYR_TOOLCHAIN_VARIANT 'xcc-clang' is deprecated. Please set ZEPHYR_TOOLCHAIN_VARIANT to 'xt-clang'")
  endif()
endif()

+2 −2
Original line number Diff line number Diff line
@@ -2,8 +2,8 @@

include(${ZEPHYR_BASE}/cmake/toolchain/xcc/common.cmake)

set(COMPILER xcc-clang)
set(COMPILER xt-clang)
set(CC clang)
set(C++ clang++)

message(STATUS "Found toolchain: xcc-clang (${XTENSA_TOOLCHAIN_PATH})")
message(STATUS "Found toolchain: xt-clang (${XTENSA_TOOLCHAIN_PATH})")
Loading