[Scons-users] Questions about tool selection

Kenny, Jason L jason.l.kenny at intel.com
Thu Jun 13 10:52:54 EDT 2013


I think you can just add a .scons-site/tools/default.py locally and this will allow you to override the default logic that is used by scons.

Jason

-----Original Message-----
From: scons-users-bounces at scons.org [mailto:scons-users-bounces at scons.org] On Behalf Of Andrew C. Morrow
Sent: Thursday, June 13, 2013 8:00 AM
To: dl9obn at darc.de; SCons users mailing list
Subject: Re: [Scons-users] Questions about tool selection


>>

>

> 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.
_______________________________________________
Scons-users mailing list
Scons-users at scons.org
http://four.pairlist.net/mailman/listinfo/scons-users


More information about the Scons-users mailing list