From 418dae429aa5ee2f72cd953648f185284610f57e Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 15 Dec 2003 07:52:30 +0000 Subject: [PATCH] Eliminate dependency cycle in some cases. [SVN r21262] --- v2/tools/builtin.jam | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/v2/tools/builtin.jam b/v2/tools/builtin.jam index a3f8ee950..6eee76804 100644 --- a/v2/tools/builtin.jam +++ b/v2/tools/builtin.jam @@ -645,7 +645,14 @@ class linking-generator : generator { for local t in $(result) { - $(t).depends $(libs:G=) ; + # The 'if' statement handles the case where + # one of the targets created by is not + # consumed and is part of result. DLLs on windows + # are an example. + if $(libs:G=) != $(t) + { + $(t).depends $(libs:G=) ; + } } } }