Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-11-11 09:26:11


Hi Johannes,

> > Do you know if defines/include paths can be specified
> > in response file?
>
> Yes, they can.
>
> > I recall some options did not work for me. Should the
> > response file be specified before the name of compiled file or anywere?
>
> Docu says:
>
> CL [options...] file... [option | file]... [lib...] [@command-file] [/link
> link-opt ...]
>
>
> Is it possible to automatically redirect the command line into a response
> file in case of such long lines?

It's a bit hard. We can try using response files for compilation
automatically.

Maybe you could try this:

1. Add the following code to msvc.jam:

rule compile.c++ ( targets + : sources * : properties * )
{
common.response-file $(targets) : $(sources) : $(targets[2]) :
$(properties) ;
}

2. Remove

-D$(DEFINES)

from the compile.c++ action

3. Add

print.text
[ on $(targets[1])
return -D$(DEFINES)
] ] ;

right at the end of "common.response-file" (file common.jam).

This should work but if try in and verify that it really works it would be
great. I'm afraid I'm too busy to try it myself this week.

- Volodya

 


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