|
Boost-Build : |
From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-10-10 16:05:49
John Thompson wrote:
> On Windows XP I built bjam.exe, renamed it to jam.exe, ran
> vcvars32.bat, but when I run jam, it chokes on the spaces in the VC
> dir path. I insert double quotes, but they seem to get taken out.
B/Jam, and Perforce/Jam, splits variables passed in on their spaces to
form a list of strings. In Boost.Build we deal with that by joining such
variables back into a single string with:
SOME_VAR = $(SOME_VAR:J= ) ;
We also have some special handling that allows you to use quoting to
have it not split the vars:
http://www.boost.org/tools/build/jam_src/index.html#variable_quoting
Also there's a way to compile bjam so that it doesn't do that variable
split. One can compile bjam with OPT_NO_EXTERNAL_VARIABLE_SPLIT for that
altered functionality. You can find a commented out line in build.jam
which has that option, just uncomment it. In some near future, after we
switch Boost to Boost.Build v2 this will be the default. We can't switch
it now because this would break current BBv1 functionality.
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
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