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

# Disable position independent code.
add_compile_options(-fno-PIC)

# gcc flags for coverage generation
set_compiler_property(PROPERTY coverage -fprofile-arcs -ftest-coverage -fno-inline)