docs.rs failed to build tracel-llvm-bundler-20.1.4-4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
llvm-bundler-rs
llvm-bundler-rs
is a Rust crate designed to automatically bundle LLVM and statically link MLIR into your project. By downloading prebuilt LLVM artifacts and configuring the necessary environment variables, it simplifies the setup process for projects that rely on LLVM and MLIR tooling.
Features
- Automatic LLVM Bundling: Downloads and decompresses prebuilt LLVM artifacts (currently using Linux x64 tarballs) from a GitHub release.
- Static Linking for MLIR: Configures environment variables to link LLVM and MLIR libraries properly with the correct order by parsing the CMake with a Regex and doing a topological sort.
Installation
Add llvm-bundler-rs
to your project's Cargo.toml
and use it in your build.rs
to compile in the right order:
[]
= "0.1.0"
To set the env variable and download if missing:
?;
bundle_cache
To get the compile order of MLIR .a:
use ;
let prefix =
new
.join
.join
.join
.join;
let path = from_cmake?;
let mlirlib = get_ordered_list;