# cmake build: allow overriding whether to use llvm-config · gitcafe/zig

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

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

Visibility: public

Requested revision: 4e9894cfc4c8e2e1d3e01aa2e3400b295b0ee2df

Requested commit: 4e9894cfc4c8e2e1d3e01aa2e3400b295b0ee2df

Commit: 4e9894cfc4c8e2e1d3e01aa2e3400b295b0ee2df

Tree: efc59febac4df5fb139b180ac4e8347b00f8fbe7

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
cmake build: allow overriding whether to use llvm-config

Previously, there was an option ZIG_PREFER_LLVM_CONFIG which would
override the default of not using llvm-config when cross compiling.

That option is now removed in favor of the more powerful
ZIG_USE_LLVM_CONFIG which defaults to OFF for cross compiling and ON for
native compilation. The option overrides the default.

This will be used in zig-bootstrap to improve support for native builds.

```

## Parents

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

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