[PATCH] D124153: [CMake] Change default CMAKE_BUILD_TYPE to Release
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 25 08:50:23 PDT 2022
tstellar added a comment.
In D124153#3471155 <https://reviews.llvm.org/D124153#3471155>, @thieta wrote:
> One thing we all seem to agree on is that documentation could be better - so I took a stab at that here - I think it's connected to this discussion, but I don't think it's the only fix, please see the doc suggestions here: https://reviews.llvm.org/D124367
>
> I am currently leaning towards:
>
> - Improve documentation
> - Make omitting CMAKE_BUILD_TYPE a error. I am also fine with changing it to Release, but I don't have a strong opinion either way. I do think keeping Debug is worse than both options. But it can be made better by point 3 here:
Even though I think making Release the default build type is better than making omitting it an error. I agree that both of these options are better than keeping Debug the default.
> - Add an error when trying to use Debug + bfd linker to catch the most common problem, especially if we keep Debug the default.
This is still a valid build configuration, so I do not think this should be an error. The best way to help new users avoid this is to just change the default.
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