# Print the llvm-config path on configuration error · gitcafe/zig

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

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

Visibility: public

Requested revision: 99c5d2d59053f647c041f71d75ee50f51a610977

Requested commit: 99c5d2d59053f647c041f71d75ee50f51a610977

Commit: 99c5d2d59053f647c041f71d75ee50f51a610977

Tree: d408074a9093b825b3d9681381537262f2531876

Author: Frank Denis

Committer: Frank Denis

## Message

```
Print the llvm-config path on configuration error

This is helpful on systems with multiple LLVM installations.

For example, OpenBSD ships with LLVM in the base system, but without
support for extra targets.

A full LLVM version can be installed using the ports system, but even
when it is, `cmake` is not going to pick it up unless `/usr/local` is
explicitly added to the `cmake` search paths.

Having the full `llvm-config` path printed on error is helpful to
understand that the detected LLVM version was not the expected one.

```

## Parents

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

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