[Scons-users] Repeated builds even with duplicate=0

Dynastic Space dynasticspace at gmail.com
Thu Feb 23 05:36:24 EST 2017


My scons version is v2.5.1.rel_2.5.1.
I have a fairly complex project, consisting quite a lot of libraries and
executables.
Every source code is always compiled by default, even though AlwaysBuild is
specified for one or two libraries.
I set duplicate=0 for every SConscript invocation.
I do have variant_dir='build'.
After enabling some messages in /usr/lib/scons/SCons/Node/__init__.py::explain
I get the following:

scons: rebuilding `build/debug/dir1/dir2/dir3/file.o' because:
           `dir1/dir2/dir3/file.cpp' is no longer a dependency
           `dir1/dir2/dir3/file.cpp' is a new dependency
           `build/debug/dir101/lib1.a' changed <---- this is the library
that always gets built
           the dependency order changed:
old: /fullpath/dir1/dir2/dir3/file.cpp
new: /fullpath/build/debug/dir1/dir2/dir3/file.cpp

I've been working on this for 2 days now, so any assistance will be much
appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170223/a37f0b1b/attachment.html>


More information about the Scons-users mailing list