[PATCH] D124153: [CMake] Change default CMAKE_BUILD_TYPE to Release
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 21 21:01:27 PDT 2022
tstellar added a comment.
In D124153#3466495 <https://reviews.llvm.org/D124153#3466495>, @mehdi_amini wrote:
> In D124153#3466424 <https://reviews.llvm.org/D124153#3466424>, @tstellar wrote:
>
>> I disagree about erroring out when CMAKE_BUILD_TYPE is undefined. We want to make the build easy for new users, so I think it's important that the default build (cmake with no arguments) just works.
>
> Why isn’t it easy to copy/paste one option clearly presented by the cmake invocation? That seems like a good user experience to me: there is a fairly simple choice to be made and we expose it concisely and directly, it’s not like there is an obscure error and the user needs to read a doc…
> It’s not like every command line tool works without mandatory options.
My experience tells me that if we present 3 options to choose from, many users will just randomly pick one without thinking about it, and we'll still get bug reports about debug builds using too much memory. To me it makes the most sense to just default to Release builds with no asserts, this is the easiest to implement and it will give new users the best experience in my opinion.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124153/new/
https://reviews.llvm.org/D124153
More information about the llvm-commits
mailing list