Skip to content

Add libclang_mojo recipe#289

Open
MoSafi2 wants to merge 2 commits into
modular:mainfrom
MoSafi2:codex/add-libclang-mojo-recipe
Open

Add libclang_mojo recipe#289
MoSafi2 wants to merge 2 commits into
modular:mainfrom
MoSafi2:codex/add-libclang-mojo-recipe

Conversation

@MoSafi2

@MoSafi2 MoSafi2 commented Jun 23, 2026

Copy link
Copy Markdown

Overview

Adds the libclang_mojo recipe, libclang_mojo provides high-level Mojo bindings for LLVM libclang with a Python clang.cindex-style API for source-code tooling.

Package Details

What's Included

  • Rattler-build recipe pinned to MoSafi2/mojo_libclang commit a14c2ee9a576463dbd5739e80e66407e94263c5d
  • Native libclang shim build for Linux and macOS
  • Mojo package precompile into ${PREFIX}/lib/mojo/clang.mojoc
  • Smoke test that imports clang.cindex.Index from the installed package
  • Project README and logo

Testing

  • pixi run rattler-build build --render-only --with-solve --recipe recipes/libclang_mojo/recipe.yaml --variant-config variants/variants.yaml --channel conda-forge --channel https://conda.modular.com/max --channel https://prefix.dev/modular-community
  • pixi run rattler-build build --recipe recipes/libclang_mojo/recipe.yaml --variant-config variants/variants.yaml --channel conda-forge --channel https://conda.modular.com/max --channel https://prefix.dev/modular-community --output-dir output/libclang_mojo-check

The full linux-64 build completed successfully and the package smoke test printed libclang_mojo package smoke test passed.

Checklist

  • My recipe.yaml file specifies which version(s) of MAX is compatible with my project (see here for an example). If not, my package is compatible with both 24.5 and 24.6.
  • License file is packaged (see here for an example).
  • Set the build number to 0 (for new packages, or if the version changed).
  • Bumped the build number (if the version is unchanged).

@MoSafi2 MoSafi2 marked this pull request as ready for review June 23, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants