[llvm] [CMake] Simplify building of bolt-optimized clang for distribution builds (PR #117772)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 27 12:07:38 PST 2024


tstellar wrote:

> Right, for that matter, it's not triggered by `ninja clang` as well. There's a problem that clang-bolt depends on clang target, so clang-bolt can't be a provider for it. In theory we could decouple targets: if CLANG_BOLT is provided, pre-BOLT clang target could be called differently, and clang-bolt target could be the provider for clang. But I thought it would be too ambitious for me to change how clang is built, which is why clang-bolt is "on the side".

OK, I was thinking of doing something like `add_dependencies(install-clang clang-bolt)` but maybe it would make more sense for me to rewrite the clang target to do the bolt optimization.

https://github.com/llvm/llvm-project/pull/117772


More information about the llvm-commits mailing list