Building LLVM runtimes as part of larger CMake project

There is documentation for consuming LLVM:
https://llvm.org/docs/CMake.html#embedding-llvm-in-your-project

The last resort is forking LLVM and integrating your project into the build system.

There are already embedded projects using the llvm-libc.