|
Boost-Build : |
From: Reece Dunn (msclrhd_at_[hidden])
Date: 2005-10-30 10:13:18
Zbynek Winkler wrote:
> Reece Dunn wrote:
>
>>The bjam-response.diff patch adds @(...) syntax support for NT builds of
>>BJam. This is based on Matt's code but was written from scratch and is
>>improved from my initial submission. When you use @(...) the code (in
>>variable.c) expands the variables in the '...' to a temporary file and
>>then outputs the location of that file.
>
> Cool!
:)
> The new builtin is enabled only for NT? IMHO it is generally useful to
> be able to output the contents of a variable to a file. It does not need
> to be only a response file for msvc or cw...
There is a new function var_string_file that is the same as var_string,
but expands the contents to a file. This is completely generic and
internal to the bjam logic.
Enabling response file syntax by defining OPT_RESPONSE is only supported
for NT builds (at present) as the logic is dependant on path_to_temp()
that is only currently supported on NT builds. It should be possible to
port path_to_temp() to other platforms (see Michael's post on the other
thread). This is only an initial attempt.
- Reece
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