[Scons-users] Sanity Check

Gary Oberbrunner garyo at oberbrunner.com
Tue Mar 18 19:37:34 EDT 2014


That looks like it should work to me. What SCons version and OS?

--
Gary Oberbrunner
(sent from my Android)
On Mar 18, 2014 11:10 AM, "Russel Winder" <russel at winder.org.uk> wrote:


> I think I am probably just going to display some ignorance but...

>

> The following SConstruct:

>

> import os

>

> environment = Environment(

> ENV = os.environ

> )

>

> outputCrate = environment.Command('liboutput-048e8aee-0.0.so', '

> output.rs', 'rustc --crate-type dylib -O $SOURCE')

>

> for f in Glob('pi_*.rs'):

> environment.Command(f.name.replace('.rs', ''), [f,

> outputCrate], 'rustc -o $TARGET -O $SOURCE -L .')

>

> causes "outputCrate" to to be built prior to all the rust codes being

> compiled, i.e everything builds as required. However the "outputCrate"

> object is not removed on "scons -c" which has surprised me. It is

> clearly in the dependency tree "scons --tree=all" shows it quite

> clearly. However "scons -c --tree=all" does not print a tree and doesn

> remove the crate as expected. Or is my expectation wrong?

>

> Thanks.

>

> --

> 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

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140318/b09f84a3/attachment.htm


More information about the Scons-users mailing list