zephyr/cmake/compiler
Marc Herbert 40c2e08e82 xcc/cmake: don't discard stderr; don't (ever!) use ERROR_QUIET
Remove ERROR_QUIET which is a bad idea 99.9% of the time. When any
program makes the effort of using stderr, we _really_ don't want to lose
those error messages.

Using ERROR_QUIET in XCC is even worse because of how high maintenance
XCC is; see another example in 4cba9e6d42 ("cmake: warn the user that
the toolchain cache hides errors")

No one expects error messages to be silently discarded and especially
not people not familiar with CMake (= most people); so hiding the
following error stalled progress for a couple days:

```
Error: there is no Xtensa core registered as the default.

You need to either specify the name of a registered Xtensa core (with
the --xtensa-core option or the XTENSA_CORE environment variable) or
specify a different registry of Xtensa cores (with the --xtensa-system
option or the XTENSA_SYSTEM environment variable).

Executing the below command failed.  Are permissions set correctly?
```

Also capture stdout and print it on failure because you never know.

Indent the ` ${CMAKE_C_COMPILER} --version` line in the error message so
CMake does not split that line.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2023-11-30 10:07:25 +01:00
..
arcmwdt cmake: compiler: Add compiler property for no-builtin 2023-11-13 10:21:41 +01:00
armclang cmake: enable -Wshadow partially for in-tree code 2023-08-22 11:39:58 +02:00
clang clang: target: Include gcc-m-fpu.cmake file 2023-10-23 16:04:39 +02:00
gcc cmake: compiler: Add compiler property for no-builtin 2023-11-13 10:21:41 +01:00
host-gcc cmake: provide a useful error msg when native compiler is missing 2023-02-09 22:10:16 +09:00
icx cmake: enable -Wshadow partially for in-tree code 2023-08-22 11:39:58 +02:00
xcc xcc/cmake: don't discard stderr; don't (ever!) use ERROR_QUIET 2023-11-30 10:07:25 +01:00
xt-clang cmake: enable -Wshadow partially for in-tree code 2023-08-22 11:39:58 +02:00
compiler_features.cmake cmake: CMake compile features support 2021-10-01 14:40:33 -04:00
compiler_flags_template.cmake cmake: compiler: Add compiler property for no-builtin 2023-11-13 10:21:41 +01:00