libcxx Bazel rules

Hello, everybody

I have some questions regarding Bazel rules for llvm targets.

In our project we plan to build llvm-project via Bazel. Currently only rules for clang, llvm, libunwind, lld and mlir are presented in the llvm tree. But we also plan to build libc and libcxx targets via Bazel, the rules for these targets aren’t in llvm tree yet. As far as I know they exist only in internal Google monorepo.

So, my questions:

  • Are there any plans to add Bazel rules for libcxx to the llvm tree under llvm-projects/utils/bazel/llvm-project-overlay?

  • And if they are, then is it an ongoing task or only plans for now? Are there any thoughts on when such rules could become available?

  • Or there aren’t such plans? Or they wouldn’t be implemented soon and we better start writing these rules by ourselves?

From the short discussion in github here - it seems that there are such plans, for libc. Is it the same for libcxx?

I would really appreciate any help :slight_smile:

Best regards,

Kirill Zabelin