Skip to content

Add a bundled mode to download LLVM automatically in the build.rs #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

marcantoinem
Copy link

@marcantoinem marcantoinem commented Jun 11, 2025

I'm writing a CPU backend in https://github.com/tracel-ai/cubecl and I needed to make mlir-sys a bit more portable and add a way to not depend on the system installation of llvm which could not be the good version. I wrote a crate to add this capability to tblgen-rs also. https://github.com/marcantoinem/llvm-bundler-rs The crates use a github action to get a specific version llvm compile it and compress it into a Github release that is then downloaded during compilation. I would love to merge it upstream. It also contains fixes to allow static linking for MLIR by reading the mlir dependency cmake and doing a topological sort. I would like to move this crate in the mlir-rs organisation to make it more trustworthy.

It also support only linux for the moment, but I will add MacOs and Windows support soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant