zephyr/cmake/toolchain/llvm/clang_libgcc.cfg
Patryk Duda 4b94fc3da2 llvm: Add support for selecting runtime library
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>
2023-08-03 19:35:11 +02:00

9 lines
333 B
INI

# SPDX-License-Identifier: Apache-2.0
# Tell clang to give us the actual path to libgcc.a
# when using --print-libgcc-file-name. Or else it may
# decide to return path to libclang_rt.* if its default
# is to use that library. Since we do -lgcc by default,
# better tell clang to give us the correct path to libgcc.a.
--rtlib=libgcc