summaryrefslogtreecommitdiff
path: root/zephyr/cmake/toolchain/llvm/target.cmake
blob: e8e5df7be1287da7432ab49806b7d9d7403b1d13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

set(COMPILER clang)
set(LINKER lld)
set(BINTOOLS llvm)

# Mapping of Zephyr architecture -> toolchain triple
set(CROSS_COMPILE_TARGET_posix        x86_64-pc-linux-gnu)
set(CROSS_COMPILE_TARGET_unit_testing x86_64-pc-linux-gnu)

set(CROSS_COMPILE_TARGET          ${CROSS_COMPILE_TARGET_${ARCH}})

set(CC clang)
set(CROSS_COMPILE "/usr/bin/${CROSS_COMPILE_TARGET}-")