reusing a ninja_log for multiple ninja.build files

66 vistas
Ir al primer mensaje no leído

Daniel Moody

no leída,
9 abr 2021, 4:32:04 p.m.9/4/21
para 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

no leída,
9 abr 2021, 4:41:02 p.m.9/4/21
para 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
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos