From fe8557180cd259ddfb7a87ab7f4f6be078b9fa90 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 3 Jun 2005 12:55:27 +0000 Subject: [PATCH] Fix response file creation. They would not be recrated if exe already exists. [SVN r29402] --- src/tools/common.jam | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tools/common.jam b/src/tools/common.jam index 8ff4bf41f..4da14d503 100644 --- a/src/tools/common.jam +++ b/src/tools/common.jam @@ -429,15 +429,17 @@ rule response-file ( targets + : sources * : the-response-file ? : properties * # TODO: now 'the-response-file' is just ignored. Need to remove # the argument altother and adjust callers. - # Create a target for response file. Not that we add 'rsp' to the target + # Create a target for response file. Note that we add 'rsp' to the target # name (without stripping suffix), so that response file names for c.exe # and c.obj are different. local rsp = $(targets[1]).rsp ; RSP on $(targets) = $(rsp) ; LOCATE on $(rsp) = [ on $(targets[1]) return $(LOCATE) ] ; DEPENDS $(targets) : $(rsp) ; - # Note: we don't need dependecy from response file on sources + # In theory, we don't need dependecy from response file on sources # because response file only needs the names of the sources. + # In practice, bjam won't recreated TEMPORARY target without dependencies. + DEPENDS $(rsp) : $(sources) ; TEMPORARY $(rsp) ; # Add libraries from property to the list of sources.