diff options
Diffstat (limited to 'zephyr/cmake/compiler')
-rw-r--r-- | zephyr/cmake/compiler/clang/compiler_flags.cmake | 8 | ||||
-rw-r--r-- | zephyr/cmake/compiler/clang/generic.cmake | 5 | ||||
-rw-r--r-- | zephyr/cmake/compiler/clang/target.cmake | 6 |
3 files changed, 19 insertions, 0 deletions
diff --git a/zephyr/cmake/compiler/clang/compiler_flags.cmake b/zephyr/cmake/compiler/clang/compiler_flags.cmake new file mode 100644 index 0000000000..1f71650975 --- /dev/null +++ b/zephyr/cmake/compiler/clang/compiler_flags.cmake @@ -0,0 +1,8 @@ +# 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) diff --git a/zephyr/cmake/compiler/clang/generic.cmake b/zephyr/cmake/compiler/clang/generic.cmake new file mode 100644 index 0000000000..33d82b38e1 --- /dev/null +++ b/zephyr/cmake/compiler/clang/generic.cmake @@ -0,0 +1,5 @@ +# 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") diff --git a/zephyr/cmake/compiler/clang/target.cmake b/zephyr/cmake/compiler/clang/target.cmake new file mode 100644 index 0000000000..6702087df5 --- /dev/null +++ b/zephyr/cmake/compiler/clang/target.cmake @@ -0,0 +1,6 @@ +# 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++") |