[PATCH] D124153: [CMake] Change default CMAKE_BUILD_TYPE to Release

Hans Wennborg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 04:06:01 PDT 2022


hans added a comment.

In D124153#3464058 <https://reviews.llvm.org/D124153#3464058>, @fhahn wrote:

> I think if `Release` is the new default we should also enable assertions by default, as this should be closer to the Debug configuration and at least ensure that `-debug` works.

I think this is a good point.

However I don't think we want to change the behaviour for "cmake -DCMAKE_BUILD_TYPE=Release ..." which today has asserts disabled, and which I presume people use for their release builds.

Enabling asserts when the user doesn't set CMAKE_BUILD_TYPE explicitly sounds good to me though.


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