|
Boost-Build : |
From: Alexey Syomichev (asyomichev_at_[hidden])
Date: 2005-05-03 21:02:59
Vladimir Prus wrote:
> 2. Grab response file support from Matt Armstrong's branch of Perforce Jam.
> It allows to write this:
>
> actions response something
> {
> foo @@(-I $(foo))
> }
>
> foo on all = /usr/include ;
>
> something all ;
>
> which produce
>
> something all
>
> foo @/tmp/jam6Pavg0
>
> ======================================================================
> contents of response file /tmp/jam6Pavg0
> -I /usr/include
> ----------------------------------------------------------------------
> /bin/sh: line 2: foo: command not found
>
>
> So, on error the content of response file is printed, but the file is removed.
> On success, the file is silently removed. The content of file is also
> included in "bjam -n" output.
>
> One downside is that with this patch it's not possible to redirect output of
> bjam to a bat file, and then run that file. I'm also not sure that Boost
> regression testing tools will be happy with the extra output.
>
> The patch is not so big, so I can integrate it quickly. Comments?
Another downside is that with this patch it would be impossible to
copy/paste and re-run a failing command line, which I personally use
quite often.
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