[Scons-users] Linking a subset of common object files
Ale Strooisma
a.strooisma at student.utwente.nl
Fri Apr 29 03:26:19 EDT 2016
Ah yes, good point, I hadn't thought of that problem. Now it makes more
sense to use -MM indeed.
Thanks for your answers, I'll read through that thread as well.
On 29 April 2016 at 06:45, Viktor Dick <viktordick86 at gmail.com> wrote:
> On 2016-04-28 16:15, Ale Strooisma wrote:
> > If anyone knows how I could use the dependency tree, I'm highly
> > interested, as I have no idea how to access it.
>
> The thread where I originally had the same question as you can be found at
> http://four.pairlist.net/pipermail/scons-users/2014-February/002243.html
>
> There is also a discussion there about using the internal scanner of
> SCons instead of 'g++ -MM'. However, as far as I understand, this does
> not use the dependency tree that has already been produced by SCons
> anyhow since the SConstruct is parsed first (at the end of which the
> list of which files need to be linked together must be finished) and
> then the header dependencies are calculated (only for the nodes that are
> needed). However, I do not know if SCons caches the result for the later
> dependecy checks and anyhow it might still be faster than calling a
> subprocess. On the other hand, I do not know if the SCons scanner is
> thread-safe, so you might not be able to spawn multiple threads to do
> the scanning for different files. In that case it might well be faster
> to delegate the scanning to 'g++ -MM'.
>
> Regards,
> Viktor
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160429/1d271406/attachment.html>
More information about the Scons-users
mailing list