[llvm] [cmake] Make CMAKE_BUILD_TYPE=Release the default (PR #174520)
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 8 10:02:16 PST 2026
rnk wrote:
> I don't quite understand the motivation, the PR description here seems vague to me. What is the problem with the current state of asking the user to be explicit? Why would it be better to select a default?
The problem, in my view, is that building LLVM is difficult for beginners. We ask them to make too many decisions, this being one of them, before they can build the project. If we can take one off the table, we should.
Going beyond that, our [Getting Started guide](https://llvm.org/docs/GettingStarted.html) is insufficiently opinionated. All the options are documented, but it requires expertise to navigate through the forest to come up with a configuration that makes people productive. There is no perfect build configuration, but I think we should bias the "getting started" docs towards novices, not experts. All the expert-friendly functionality should be present for tuning, but there should be a 3-line shell stanza that is copy-pastable and results in an `llc` or `clang` binary on most systems, and we're far from that today.
https://github.com/llvm/llvm-project/pull/174520
More information about the llvm-commits
mailing list