tstellar added a comment. I think this could be simplified by using object libraries like this patch: https://reviews.llvm.org/D95727 does for libLLVM.so CHANGES SINCE LAST ACTION https://reviews.llvm.org/D85278/new/ https://reviews.llvm.org/D85278