[Scons-users] Scons-users Digest, Vol 165, Issue 8
Mats Wichmann
mats at wichmann.us
Sat Jun 7 08:16:33 EDT 2025
On 6/7/25 04:55, 于 wrote:
>
> could I use ninja to balance building time and dependencies?
Yes, there are several ways to cut down build time, as long as you're
prepared to accept some compromises.
Letting SCons generate a ninja build file, and using ninja for builds
most of the time, is fine. You can also use the
--implicit-deps-unchanged option, which says not to rescan for
dependencies. Both approaches work if you know you haven't changed the
structure of the project, such that the dependencies might change. If
they do, just rerun SCons normally (or in generate-ninja-file mode), and
you can go back to using the speedups.
There are some other tricks here:
https://github.com/SCons/scons/wiki/GoFastButton
More information about the Scons-users
mailing list