[Scons-users] Questions about tool selection

Andrew C. Morrow andrew.c.morrow at gmail.com
Thu Jun 13 09:00:11 EDT 2013



>>

>

> you could also try to load the default tools first with

>

> env = Environment() # finds all default stuff

>

> and then, on top of that, load the specific Tool you actually want, like

>

> env.Tool('mylink')

>

> . Most of the C/C++ Tools are directly replacing values in the Environment,

> so you could try to overwrite one with the other.

> Just as a an idea (untested and not really recommended).

>


That is an interesting idea. I'll give it a try. It would be fairly
'surgical' since I could basically say:

env = Environment(tools=["default"])
if solaris:
env.Tool('gnulink')

so it wouldn't affect other platforms.


More information about the Scons-users mailing list