Boost logo

Boost-Build :

From: Kirill Lapshin (gclbb-jamboost_at_[hidden])
Date: 2003-06-30 21:24:03


Beman Dawes wrote:
> Problem 2 (the original problem): If bjam is invoked in a batch file like
> this:
>
> bjam %1 %2 %3 %4 %5 %6 %7 %8 %9

Use bjam %* instead, this will solve the problem.
cmd.exe has quite wierd behavior. When other batch file called from the
batch file, then there is no difference between '%1 %2 %3 %4..' and '%*'
(well apart from the case when ther are more then nine args). But when
the program is called from batch file then it for some reason processes
arguments differently.

> Possible fixes:
>
> * Try to explain the above in the docs.

Not sure if it worthwhile. This will make docs even less readable. Maybe
adding it in some appendix or FAQ would be nice, but not into doc itself.

> * Just give examples in the form "-sBUILD=<cxxflags>-W4".

Yepp, I think that's the way to go.

> * Change bjam so it treats two arguments -sBUILD "<cxxflags>-W4" the same
> as -sBUILD="<cxxflags>-W4" and "-sBUILD=<cxxflags>-W4"

Don't think it is trttd.

--Kirill

 


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