reusing a ninja_log for multiple files

Skip to first unread message

Daniel Moody

Apr 9, 2021, 4:32:04 PM4/9/21
to ninja-build
I have variants of my build generated into different files where each variant has different compilers or even just options.

Can those two ninja files reuse the same ninja_log? Are there benefits to this if they can?

Ben Boeckel

Apr 9, 2021, 4:41:02 PM4/9/21
to Daniel Moody, ninja-build
No. In fact, it is dangerous because `ninja -t cleandead` can remove
files from one `` that are found in the log not mentioned in
the current ``. I would recommend not doing this (even if
there are other benefits).

In practice, the different working directories likely makes it not work

Reply all
Reply to author
0 new messages