Cargo Features

llvm-sys-featured has no features set by default.

[dependencies]
llvm-sys-featured = { version = "0.1.1", features = ["llvm-8", "llvm-10", "strict-versioning", "no-llvm-linking", "disable-alltargets-init"] }
llvm-8

Select the LLVM version to be compatible with.
You _must_ enable exactly one of the following features.

llvm-9 llvm-10
strict-versioning

Require an exact match between the LLVM version being used and the one selected with the above features; see the README for more details

no-llvm-linking

Do not attempt to link against LLVM libraries (useful if a different crate in your dependency tree provides them instead).

disable-alltargets-init

Do not attempt to build the LLVM_InitializeAllTarget* functions.
Useful if the build host doesn't have a copy of LLVM to compile/link against and you do not use any of those functions.