mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-08 03:15:21 +00:00
In case TOOLCHAIN_HOME isn't explicitly reuqested, (or indirectly forced with CLANG_ROOT_DIR), detect any host installed clang in the path. Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
9 lines
210 B
CMake
9 lines
210 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if(DEFINED TOOLCHAIN_HOME)
|
|
set(find_program_clang_args PATH ${TOOLCHAIN_HOME} NO_DEFAULT_PATH)
|
|
endif()
|
|
|
|
find_program(CMAKE_C_COMPILER clang ${find_program_clang_args})
|
|
|