-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[CMake] Simplify building of bolt-optimized clang for distribution builds #117772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ilds Currently if you want to do a distribution build (i.e. using LLVM_DISTIRIBUTION_COMPONENTS) with a bolt-optimized clang, then you need to pass two separate targets to ninja like this: ninja -C build clang-bolt distribiution This patch simplifies this workflow so that you can do a distribution build with a bolt-optimized build with just a single target: ninja -C build distribution
|
Could we also gate this on |
Is that redundant with the check for the clang-bolt target? |
|
I noticed this wasn't working for the install targets, so I had to add clang-bolt as a dependency to the install targets too. I wonder if would be better to have the install targets depend on the |
|
As I look into this more, it's not strictly a problem with distribution builds. Just enabling bolt and running |
Right, for that matter, it's not triggered by |
OK, I was thinking of doing something like |
|
Closing this in favor of #119896. |
Currently if you want to do a distribution build (i.e. using LLVM_DISTIRIBUTION_COMPONENTS) with a bolt-optimized clang, then you need to pass two separate targets to ninja like this:
ninja -C build clang-bolt distribiution
This patch simplifies this workflow so that you can do a distribution build with a bolt-optimized build with just a single target:
ninja -C build distribution