apteryks

Results 426 comments of apteryks

> I think llvm discourages that setup generally Discourage what setup? If you mean `-DLLVM_BUILD_LLVM_DYLIB=ON` and `-DCLANG_LINK_CLANG_DYLIB=ON`, these are the recommended switches for a shared library build of LLVM/Clang (see:...

> To move forward here, I propose to replace the llvm-config part with find_package for clang and llvm. Most of these changes you inserted will be handled automatically for you....

> Replacing should be fine. I've pushed a new version which implements the change suggested. I was able to use this patch to build cling against a shared library LLVM...

> That looks pretty good. Can you confirm you can build and package cling standalone this way? Yes. I built the `cling` package definition shown in this thread using this...

The README does mention one should use `cmake -D__LIB=lib ..`, but it seems this should at least be the default.

I guess it should simply honor `CMAKE_INSTALL_LIBDIR`instead of replacing it with `__LIB`. Distributions such as GNU Guix are already setting that as part of their build tooling.

I've reproduced the above using the latest available commit, d5847615d0a5c082b1d61bdefc4683109c49de67.

Although it built fine, compiling the Linux kernel with CONFIG_DEBUG_INFO would fail with a `failed to find '.BTF' ELF section in vmlinux` error message; using the exact same commit as...