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

Aaron Puchert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 13:50:38 PDT 2022


aaronpuchert added a comment.

We could also point to https://llvm.org/docs/CMake.html if no `CMAKE_BUILD_TYPE` is given. Depending on the use case (e.g. debug info might actually be wanted) other flags might be helpful like `BUILD_SHARED_LIBS` or `LLVM_USE_SPLIT_DWARF`. Or if you're working on frontend topics, set `LLVM_TARGETS_TO_BUILD=Native`. Some of these have a greater effect on build time/size than `CMAKE_BUILD_TYPE=Release` in my experience, and the page lists these options quite nicely.


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