Response file issue with a badly behaving compiler.
Added by John Brandwood over 2 years ago
One particular compiler that I use has a problem parsing the last item in a response file because there is no delimiting space between the last item and the EOF.
Here's a one-line patch to include a final " " character at the end of the response file.
I've tested this patch with 5 different compilers and it fixes the problem that I'm having without causing any trouble with the other compilers.
Please consider this for JamPlus 0.4
Thanks,
John
response-file.patch (483 Bytes)
Replies (2)
RE: Response file issue with a badly behaving compiler.
-
Added by Joshua Jensen over 2 years ago
If it is for one specific compiler, should we look into modifying only the C.CC and C.C++ actions directly?
For instance:
actions updated response C.CC
{
PATH=$(MSVCNT_BIN_PATH);%PATH%
SET INCLUDE=$(C.STDHDRS:\\J=;)
"$(C.CC:\\)" /nologo @@($(MFLAGS) "$(>)" ) <--- Note the extra space.
}
RE: Response file issue with a badly behaving compiler.
-
Added by John Brandwood over 2 years ago
Whoops, my mistake.
I thought that I'd already tried that solution without success, but I must have been thinking of my attempts to embed CR/LF sequences into the response file.
Adding the space in the action does in fact work perfectly, and is much better than messing with Jam itself.
Thanks,
John
(1-2/2)