[Scons-users] solving dependency cycle

Kraus Philipp philipp.kraus at flashpixx.de
Fri Aug 17 06:21:24 EDT 2012


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



More information about the Scons-users mailing list