zephyr/cmake/compiler/gcc
Luca Fancellu b3949415d8 cmake: gcc: Use --sysroot with gcc when SYSROOT_DIR is provided
When SYSROOT_DIR is provided, gcc should use it through the --sysroot=
option otherwise some commands won't work as expected.

For example, in the Yocto environment when cross compiling,
--print-libgcc-file-name prints only "libgcc.a" instead of the full
path to it and the subsequent assert_exists(LIBGCC_FILE_NAME) will
fail.

Fixes #45578
Signed-off-by: Luca Fancellu <luca.fancellu@arm.com>
2022-05-23 19:33:33 +09:00
..
compiler_flags.cmake soc: esp32: add Espressif HAL config 2022-05-11 10:47:27 +02:00
generic.cmake
target.cmake cmake: gcc: Use --sysroot with gcc when SYSROOT_DIR is provided 2022-05-23 19:33:33 +09:00
target_arm.cmake cmake: gcc: target_arm: Force FP hard ABI for DCLS 2022-05-05 12:03:27 +09:00
target_arm64.cmake
target_mips.cmake
target_riscv.cmake arch/riscv: Adding KConfig options for 'A' and 'M' RISC-V extensions 2022-03-22 18:00:32 -04:00
target_sparc.cmake
target_x86.cmake