diff options
Diffstat (limited to 'zephyr/cmake/compiler')
-rw-r--r-- | zephyr/cmake/compiler/clang/compiler_flags.cmake | 10 | ||||
-rw-r--r-- | zephyr/cmake/compiler/clang/generic.cmake | 6 | ||||
-rw-r--r-- | zephyr/cmake/compiler/clang/target.cmake | 6 | ||||
-rw-r--r-- | zephyr/cmake/compiler/gcc/compiler_flags.cmake | 7 | ||||
-rw-r--r-- | zephyr/cmake/compiler/gcc/target.cmake | 14 |
5 files changed, 0 insertions, 43 deletions
diff --git a/zephyr/cmake/compiler/clang/compiler_flags.cmake b/zephyr/cmake/compiler/clang/compiler_flags.cmake deleted file mode 100644 index d247bd622d..0000000000 --- a/zephyr/cmake/compiler/clang/compiler_flags.cmake +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright 2020 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -include("${ZEPHYR_BASE}/cmake/compiler/clang/compiler_flags.cmake") - -# Disable -fno-freestanding. -set_compiler_property(PROPERTY hosted) - -check_set_compiler_property(APPEND PROPERTY warning_extended -Wunused-variable -Werror=unused-variable) diff --git a/zephyr/cmake/compiler/clang/generic.cmake b/zephyr/cmake/compiler/clang/generic.cmake deleted file mode 100644 index aa3665ad39..0000000000 --- a/zephyr/cmake/compiler/clang/generic.cmake +++ /dev/null @@ -1,6 +0,0 @@ -# Copyright 2020 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -set(CMAKE_C_COMPILER "/usr/bin/x86_64-pc-linux-gnu-clang") -set(CMAKE_GCOV "/usr/bin/llvm-cov gcov") diff --git a/zephyr/cmake/compiler/clang/target.cmake b/zephyr/cmake/compiler/clang/target.cmake deleted file mode 100644 index 6702087df5..0000000000 --- a/zephyr/cmake/compiler/clang/target.cmake +++ /dev/null @@ -1,6 +0,0 @@ -# Copyright 2020 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -set(CMAKE_C_COMPILER "${CROSS_COMPILE}clang") -set(CMAKE_CXX_COMPILER "${CROSS_COMPILE}clang++") diff --git a/zephyr/cmake/compiler/gcc/compiler_flags.cmake b/zephyr/cmake/compiler/gcc/compiler_flags.cmake deleted file mode 100644 index 125f909c87..0000000000 --- a/zephyr/cmake/compiler/gcc/compiler_flags.cmake +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright 2020 The Chromium OS Authors. All rights reserved. -# 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") diff --git a/zephyr/cmake/compiler/gcc/target.cmake b/zephyr/cmake/compiler/gcc/target.cmake deleted file mode 100644 index 5bdb6fc5f6..0000000000 --- a/zephyr/cmake/compiler/gcc/target.cmake +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright 2020 The Chromium OS Authors. All rights reserved. -# 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() |