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

Markus Böck via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 05:13:01 PDT 2022


zero9178 added a comment.

Are there any numbers as to how much slower an assertion build in Release mode is? I can see some benefits in having assertions turned on if no build type is specified:

- Assertion failures have nicer error messages in bug reports than segmentation faults caused by violated pre-conditions
- It could potentially catch miscompiles or similar that would otherwise go unnoticed

I definitely am against having it default to on when a user specified the build type to be release explicitly however.


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