1# Copyright (c) 2025 IAR Systems AB 2# 3# SPDX-License-Identifier: Apache-2.0 4 5if(NOT CMAKE_DTS_PREPROCESSOR) 6 find_program(CMAKE_DTS_PREPROCESSOR arm-zephyr-eabi-gcc PATHS ${ZEPHYR_SDK_INSTALL_DIR}/arm-zephyr-eabi/bin NO_DEFAULT_PATH) 7endif() 8 9if(NOT CMAKE_DTS_PREPROCESSOR) 10 message(FATAL_ERROR "Zephyr was unable to find \`arm-zephyr-eabi-gcc\` for DTS preprocessing") 11endif() 12 13if(CMAKE_C_COMPILER STREQUAL CMAKE_C_COMPILER-NOTFOUND) 14 message(FATAL_ERROR "Zephyr was unable to find the IAR toolchain. Was the environment misconfigured?") 15endif() 16