[Scons-users] solving dependency cycle

TOM TANNER (BLOOMBERG/ LONDON) ttanner2 at bloomberg.net
Fri Aug 17 06:48:09 EDT 2012


Thats not a dependency cycle per se. Please could you give us the full error message, as that shows you what the cycle is between.

Also, how do you build x?

----- Original Message -----
From: scons-users at scons.org
To: scons-users at scons.org
At: 8/17 11:17:59

Hello,

how can I solve "dependency cycles" ?

I have got 3 source files (a, b c) that creates one target
finally = env.Program( ..., sources=[a,b,c] )

I have got a previous target x on which a, b and c depends:

finally depends on a, b, c
a depends on x
b depends also on x
c depends also on x

Scons creates the error, that it detects a dependy cycle. There is one, because
three targets depend on one. How can I solve this problem?
I try to use "SideEffect", so that only one of the targets builds x, but the cycle exists also
and Scons create an error. Can I tell scons, that it use only one branch of the graph to build x
and ignores the other one?

Thank

Phil

_______________________________________________
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