search for: ninja_log

Displaying 1 result from an estimated 1 matches for "ninja_log".

2019 May 24
2
Prevent ninja from rerunning cmake in a new build directory
Just posted this fix on ninja's github page, but figured I'd share it with a larger audience. Every time I run cmake && ninja in a new build directory, ninja will rerun cmake because the entry for build.ninja in .ninja_log is older than the timestamp on CMakeCache.txt, even if the timestamps on the actual file isn't older. The following patch fixes the problem, i.e., there's no need to add build.ninja to the ninja_log: diff --git a/src/ninja.cc b/src/ninja.cc index a093cd1..810b22d 100644 --- a/src/ninja.cc...