[Scons-users] StaticLibrary builder

Russel Winder russel at winder.org.uk
Wed Aug 8 15:01:19 EDT 2012


On Wed, 2012-08-08 at 13:09 -0400, Gary Oberbrunner wrote:

> On Wed, Aug 8, 2012 at 12:35 PM, Russel Winder <russel at winder.org.uk> wrote:

[…]

> > 1. g++ and gnulink define a complete toolchain. so why do I need more.

> > Actually I shouldn't need gnulink given I said g++ but I don't get the

> > Program builder without a link tool.

>

> Because tools don't have dependencies, so just because it *looks* like

> a complete toolchain doesn't mean it works that way. (There is no

> real concept of a toolchain in SCons yet.) If you added gcc it might

> have worked.


Looking at the C, C++, Fortran, (and D sort of) support it looks like
toolchains with an attempt to allow any intermixing of object file
generator and linker. This is definitely not a win–win situation.

'gcc', 'g++', gnulink' fails.


> > 2. I actively want to stop some tools being initialized because they

> > are broken. It's OK, I broke them, they are experiments that I need to

> > be able to selectively ignore.

>

> Some of the default tools? Or your own?


Actually the D tools support, which is a bit of a mess just now.


> > 3. Surely tools=['default', 'g++', 'gnulink'] is just redundant since g

> > ++ and gnulink are initialized by default anyway?

>

> If you're on Linux (or Mac I think) then the above should be true.


Except that it isn't. The above stops the D tools from trying to
initialize whereas not having anything does so the above is not
equivalent.


> > 4. tools=['default', 'g++', 'gnulink'] does actually work for me, which

> > means I now have no understanding of what is happening.

>

> Does it work with tools=['default']? (I.e. no additional tools) If

> so, your explanation above explains it.


default

definitely behaves differently from:

default, g++, gnulink

the former causes the D tool to run, the latter inhibits it.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : <http://four.pairlist.net/pipermail/scons-users/attachments/20120808/49541db1/attachment.pgp>


More information about the Scons-users mailing list