$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-09-28 02:46:47
Vladimir Prus wrote:
> On Tuesday 27 September 2005 12:08, Reece Dunn wrote:
>
>>If msvc fails to compile a source file, the RSP file is not deleted.
>
> Well, this is by design. You probably need to look at the options in RSP
> files, since they can be related to compile failure.
>
>>Therefore, if you change the Jamfile settings that alters the RSP file
>>contents, those changes aren't picked up.
>
> Well, this is a problem indeed. So far, no good solution exists.
I have done some investigating on this. The problem appears to be in
common.jam(536): rule response-file
Chaning line 583: "print.output $(rsp)" to
echo response file $(rsp) ;
print.output "console" ; # $(rsp) ;
gives:
response file
<p..\..\..\build\tools\music\msvc-7.1\release\user-interface-gui\w
in32-charset-unicode>main.obj.rsp
-DFOO
-DNDEBUG
...
so it *is* picking up the changes (-DFOO), but these aren't being passed
on to the file. Therefore, the problem is in the util/print.jam logic.
(Should the response file set output to overwrite the contents?)
NOTE: I have tested this from both NT/cmd and cygwin/bash with the same
effect.
- Reece