|
Boost-Build : |
Subject: [Boost-build] Target is always rebuild when referenced resource is newer then the rc file
From: Pavel Machyniak (machyniak_at_[hidden])
Date: 2012-06-22 10:40:11
Hi,
when compiling resource `rc` file (msvc toolset), dependent target is
always rebuild when referenced resource file is newer then the `rc` file
itself.
Working example is attached. Change the modification time of the
`test.ico` file to current. And try to build the project repeatedly.
After first normal build, it is always rebuilt.
>From the diagnostic output:
bjam.exe -d+3
...
make -- <pbin\msvc-10\debug\threading-multi>test_res.obj
make -- <pbin\msvc-10\debug\threading-multi>test_res.obj
bind -- <pbin\msvc-10\debug\threading-multi>test_res.obj:
bin\msvc-10\debug\threading-multi\test_res.obj
time -- <pbin\msvc-10\debug\threading-multi>test_res.obj: Fri
Jun 22 17:08:19 2012
make -- <p.-object(res-scanner)@62>test.rc
make -- <p.-object(res-scanner)@62>test.rc
bind -- <p.-object(res-scanner)@62>test.rc: test.rc
time -- <p.-object(res-scanner)@62>test.rc: Fri Jun 22 17:06:57
2012
make -- <p.>test.rc
make -- <p.>test.rc
bind -- <p.>test.rc: test.rc
time -- <p.>test.rc: Fri Jun 22 17:06:57 2012
made stable <p.>test.rc
make -- <object(res-scanner)@62#.>test.ico
make -- <object(res-scanner)@62#.>test.ico
bind -- <object(res-scanner)@62#.>test.ico: test.ico
time -- <object(res-scanner)@62#.>test.ico: Fri Jun 22
17:07:28 2012
made* newer <object(res-scanner)@62#.>test.ico
make -- <p.-object(res-scanner)@62>test.rc
make -- <p.-object(res-scanner)@62>test.rc
time -- <p.-object(res-scanner)@62>test.rc: unbound
made+ old <p.-object(res-scanner)@62>test.rc
made+ update <pbin\msvc-10\debug\threading-multi>test_res.obj
...
Best Regards,
Pavel Machyniak
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