reusing a ninja_log for multiple ninja.build files

22 views
Skip to first unread message

Daniel Moody

unread,
Apr 9, 2021, 4:32:04 PMApr 9
to ninja-build
I have variants of my build generated into different ninja.build 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

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

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

--Ben
Reply all
Reply to author
Forward
0 new messages