# cmake: Print all LLVM config errors instead of just the last one · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b35490c21732d74232680d2de2deb89f97356c0d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b35490c21732d74232680d2de2deb89f97356c0d

Requested commit: b35490c21732d74232680d2de2deb89f97356c0d

Commit: b35490c21732d74232680d2de2deb89f97356c0d

Tree: 0fcf32b4a694d4514a5b29eb582ef0653ccf59d1

Author: sin-ack

Committer: Andrew Kelley

## Message

```
cmake: Print all LLVM config errors instead of just the last one

If you have multiple llvm-config executables in your path, and all of
them cause failures, then only the last failure will be printed. This
can cause confusion when the multiple llvm-config executables are from
different major LLVM versions, i.e. LLVM 13 and 14, which might mask an
error that happened on the LLVM 14 llvm-config with an unrelated error.

This commit makes it so that all errors are collected into a list and
printed all at once; this way, you can see how each llvm-config
executable failed to configure properly. Note that the failures still
won't be printed if a successful configuration is found.

```

## Parents

- [c0a1b4fa46dfd00d0cc4d1b6954bc07ae762e31e](https://git.cafe/gitcafe/zig/commit/c0a1b4fa46dfd00d0cc4d1b6954bc07ae762e31e?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b35490c21732d74232680d2de2deb89f97356c0d?format=markdown)
