4b94fc3da2
This patch adds Kconfig options to select either GNU libgcc or LLVM compiler-rt. The 'rtlib' flag is provided in a config file, so this patch introduces 'clang_libgcc.cfg' and 'clang_compiler_rt.cfg' which enable appropriate library. The file is selected by concatenating the 'clang_' prefix with library name. Signed-off-by: Patryk Duda <pdk@semihalf.com>
27 lines
576 B
Plaintext
27 lines
576 B
Plaintext
# Copyright (c) 2023 The ChromiumOS Authors
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config COMPILER_RT_SUPPORTED
|
|
bool
|
|
default y
|
|
depends on "${ZEPHYR_TOOLCHAIN_VARIANT}" = "llvm"
|
|
help
|
|
Selected when the compiler supports compiler-rt runtime library.
|
|
|
|
choice RTLIB_IMPLEMENTATION
|
|
prompt "Runtime library implementation"
|
|
default LIBGCC_RTLIB
|
|
|
|
config LIBGCC_RTLIB
|
|
bool "GNU Libgcc"
|
|
help
|
|
Use libgcc as a runtime library.
|
|
|
|
config COMPILER_RT_RTLIB
|
|
bool "LLVM compiler-rt"
|
|
depends on COMPILER_RT_SUPPORTED
|
|
help
|
|
Use LLVM compiler-rt as a runtime library.
|
|
|
|
endchoice
|