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;
charset="us-ascii";
name="response.py"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="response.py"

#!/usr/bin/python

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;
}

""")

t.run_build_system()
t.expect_addition("d/bin/$toolset/debug/hello.exe")

t.rm("d/bin/$toolset/debug/hello.exe")
# The following line makes the test pass
#t.rm("d/bin/$toolset/debug/hello.rsp")
t.run_build_system(subdir="d")

t.cleanup()
 --------------Boundary-00=_FM0FH386BZXGICL7CKTX--


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk