Skip to content
Permalink
Browse files

cmake: clang: Allow host's clang to be used for native_posix

Allow host installed clang to be used for native_posix when
ZEPHYR_TOOLCHAIN_VARIANT=llvm.

Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
  • Loading branch information...
ozhuraki authored and nashif committed Mar 8, 2019
1 parent b54f1a9 commit d4ce29243bb54c2353e81b9b55a5917cd47755e5
Showing with 3 additions and 1 deletion.
  1. +3 −1 cmake/generic_toolchain.cmake
@@ -50,7 +50,9 @@ assert(ZEPHYR_TOOLCHAIN_VARIANT "Zephyr toolchain variant invalid: please set th

# Pick host system's toolchain if we are targeting posix
if((${ARCH} STREQUAL "posix") OR (${ARCH} STREQUAL "x86_64"))
set(ZEPHYR_TOOLCHAIN_VARIANT "host")
if(NOT "${ZEPHYR_TOOLCHAIN_VARIANT}" STREQUAL "llvm")
set(ZEPHYR_TOOLCHAIN_VARIANT "host")
endif()
endif()

# Configure the toolchain based on what SDK/toolchain is in use.

0 comments on commit d4ce292

Please sign in to comment.
You can’t perform that action at this time.