zephyr/cmake
Joel Holdsworth c7bc47c60d cmake: compiler: Check -fdiagnostics-color=always before using
The -fdiagnostics-color flag is only on GCC versions 4.9.0 and newer.
Previously, CMake only checked that the compiler was not the XCC compiler
before using the flag.

However, given that the flag us unavailable on compilers other than XCC,
e.g. old versions of GCC, this patch replaces the previous logic with a
flag-check using the check_set_compiler_property() CMake function.

Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
2025-01-27 13:24:52 +01:00
..
app
bintools cmake: bintools: add --strip-unneeded flag to elfconvert 2025-01-27 08:54:44 +01:00
compiler cmake: compiler: Check -fdiagnostics-color=always before using 2025-01-27 13:24:52 +01:00
emu boards: intel: ish: Improve Simics support 2024-12-12 16:22:34 +01:00
flash cmake: flash: update cmake to support rtt target 2024-11-21 11:01:55 +00:00
ide build: namespace autoconf.h with zephyr/ 2024-05-28 22:03:55 +02:00
linker Revert "cmake: remove enforcement of DWARF v4" 2024-12-20 16:05:23 +01:00
linker_script net: Extend the protocol handling in Ethernet 2025-01-20 09:21:32 +01:00
makefile_exports
modules cmake: support array of maps in yaml module 2025-01-27 13:24:23 +01:00
reports reports: footprint: Print footprint output 2024-10-25 22:44:07 +01:00
sca sca: added support for Polyspace tool 2025-01-07 14:13:13 +01:00
toolchain cmake: toolchain: Remove deprecated 'xtools' toolchain variant 2025-01-17 10:50:07 +01:00
usage cmake: targets: usage: add missing custom targets 2024-08-31 06:46:44 -04:00
util
cfb.cmake
extra_flags.cmake
gcc-m-cpu.cmake arch: Add Cortex-R8 support 2024-10-01 09:58:22 +02:00
gcc-m-fpu.cmake arch: Add Cortex-R8 support 2024-10-01 09:58:22 +02:00
gen_version_h.cmake cmake: Create git module 2024-09-12 10:04:05 +02:00
kobj.cmake build: namespace the generated headers with zephyr/ 2024-05-28 22:03:55 +02:00
llext-edk.cmake llext-edk: fix: add compile definitions to the generated EDK 2024-08-12 12:43:09 +02:00
mcuboot.cmake cmake: mcuboot: Use zephyr-discovered imgtool 2025-01-21 11:10:26 +01:00
package_helper.cmake cmake: move script mode handling from package helper to extensions.cmake 2024-10-08 17:00:30 +02:00
pristine.cmake
target_toolchain_flags.cmake cmake: source dedicated linker library properties for native builds 2024-11-16 15:28:20 -05:00
verify-toolchain.cmake
vif.cmake