[PATCH] D75425: [docs] Added solutions to slow build under common problems

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 18 09:47:26 PDT 2020


Meinersbur added inline comments.


================
Comment at: llvm/docs/GettingStarted.rst:1106
+ * -G Ninja
+   Setting this option will allow you to build with ninja instead of make.
+
----------------
Meinersbur wrote:
> Maybe also mention that ninja is fester than make, especially when there is not a lot to (re-)build.
To clarify: ninja helps most with incremental builds. That is, only some of the files are changes and only some of the build artifacts need to be recreated, often the case in development cycles. The extreme case is that no file has changed, and make/ninja only need to check every file's modified date. make recursively calls itself in every directory, taking a multiple of the time ninja does for the same task.

The wording "if you are rebuilding or building multiple times." does not say that. Why would someone build the same source multiple times?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75425/new/

https://reviews.llvm.org/D75425





More information about the llvm-commits mailing list