zephyr/cmake/compiler/clang
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
..
compiler_flags.cmake cmake/compiler: Add linker_script compiler property 2023-07-06 11:43:09 +02:00
generic.cmake cmake: provide a useful error msg when native compiler is missing 2023-02-09 22:10:16 +09:00
target.cmake clang: Provide --target option when determining path to runtime library 2023-08-01 11:36:47 +02:00
target_arm.cmake clang: Don't specify FP16 format 2023-08-01 11:24:07 +02:00