Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2003-03-27 11:03:51

Hmm.. seems there's another issue with response files. Please see the
attached testcase.

Jamfile at top has "build-project d ;"
Jamfile in "d" builds "hello" exe from "hello.cpp". Okay, it works.
Now you remove "d/bin/..../hello.exe", change to "d" and try rebuilding.
Bjam tries to recreate "hello.exe", notices that "hello.rsp" is already there
and uses it. Oops! The pathnames in "hello.rsp" were created when we were
building from root, and now they are incorrect.

I don't know a solution yet. How can we force rebuild of 'rsp' file when 'exe'
is rebuilt?

- Volodya --------------Boundary-00=_FM0FH386BZXGICL7CKTX Content-Type: text/x-python;
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=""


from BoostBuild import Tester, List

# Create a temporary working directory
t = Tester()

# Create the needed files
t.write("project-root.jam", "")
t.write("Jamfile", """
build-project d ;
t.write("d/Jamfile", """
exe hello : hello.cpp ;
t.write("d/hello.cpp", """
int main()
return 0;



# The following line makes the test pass


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at