zephyr/cmake/compiler
Patryk Duda 3a97fe256c clang: Provide --target option when determining path to runtime library
Clang/LLVM is natively a cross-compiler, so one set of applications can
compile code to all supported targets. The default target can be changed
using '--target' option.

CMake supports this type of compilers. To change compiling target, one
should set CMAKE_C_COMPILER_TARGET accorgindly.

The '--target' option has impact on the path to clang-rt library
returned by compiler when run with '--print-libgcc-file-name' option.
Without specifying target, Clang will return path to runtime library of
the host target (e.g. x86_64-pc-linux-gnu).

Signed-off-by: Patryk Duda <pdk@semihalf.com>
2023-08-01 11:36:47 +02:00
..
arcmwdt ARC: MWDT: rework GNU helper tools usage 2023-06-17 07:44:31 -04:00
armclang cmake: armclang: Handle -mfpu=auto used by cortex-m55 2023-04-27 14:16:52 +02:00
clang clang: Provide --target option when determining path to runtime library 2023-08-01 11:36:47 +02:00
gcc soc: arm64: Add agilex5 soc folder and its configurations 2023-07-25 16:58:01 +00:00
host-gcc cmake: provide a useful error msg when native compiler is missing 2023-02-09 22:10:16 +09:00
icx oneapi: disable use of libirc when building C++ 2023-03-16 09:16:03 +01:00
xcc treewide: Use CONFIG_CPP instead of CONFIG_CPLUSPLUS 2023-01-13 17:42:55 -05:00
xt-clang toolchain: rename xcc-clang to xt-clang 2023-02-22 08:35:46 -05:00
compiler_features.cmake cmake: CMake compile features support 2021-10-01 14:40:33 -04:00
compiler_flags_template.cmake cmake/compiler: Add linker_script compiler property 2023-07-06 11:43:09 +02:00