summaryrefslogtreecommitdiff
path: root/zephyr/cmake/compiler/gcc/target.cmake
blob: 943ea167cae16dfbec9cbea42e83a2ac1f81edb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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.

# Zephyr cmake system looks into ${TOOLCHAIN_ROOT}, but we just send
# this out to the copy in ${ZEPHYR_BASE}.
include("${ZEPHYR_BASE}/cmake/compiler/gcc/target.cmake")

# no_libgcc support has been removed in upstream zephyr, but we still
# depend on it.  This ugly hack emulates what it used to do by undoing
# what some of target.cmake does.
if(no_libgcc)
  list(REMOVE_ITEM TOOLCHAIN_LIBS gcc)
endif()