[PATCH] D119079: [llvm] [cmake] Fix finding modern ounit2

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 15 14:01:37 PST 2022


mgorny added a comment.

It's basically https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-ml/llvm-ocaml/llvm-ocaml-15.0.0.9999.ebuild#n41.

Note that I'm building it on top of already-installed LLVM. It involves some hacks already present in CMake to avoid building other parts of LLVM etc. Plus a hack to symlink system `.so` files into build dir's `lib/`.

Then it's just:

  make ocaml_all
  make check-llvm-bindings-ocaml
  DESTDIR="${D}" cmake -P "${BUILD_DIR}"/bindings/ocaml/cmake_install.cmake

Replace `make` with `ninja` as appropriate. I think modern cmake has some wrapper for calling these two, if your prefer.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119079/new/

https://reviews.llvm.org/D119079



More information about the llvm-commits mailing list