Boost logo

Boost-Build :

From: Matt Shepcar (boostbuild_at_[hidden])
Date: 2004-09-15 08:20:41


Ok, well there is this code in the same file (basically i've just
modified gcc.jam):

if [ os.name ] = NT
{
# This causes single-line command invocation to not go through
# .bat files, thus avoiding command-line length limitations
JAMSHELL = % ;
}

However, removing this results in a command-line length error (>2047
characters). Is there any way around this? Thanks.

Matt

--- In jamboost_at_[hidden], Vladimir Prus <ghost_at_c...> wrote:
> Matt Shepcar wrote:
> > "more than on command line" is more than one command line .. like
> > two!
> > e.g.
> >
> > actions link bind LIBRARIES
> > {
> > ld $(OPTIONS) -L"$(LINKPATH)" --start-group "$(LIBRARIES)" -
> > l$(FINDLIBS-SA) -l$(FINDLIBS-ST) --end-group "$(>)" -Map "$(<).
map"
> > -o
> > "$(<)"
> > link-stripper "$(<)" "$(<).stripped"
> > }
> >
> > causes it to pass the whole lot as one long command line.. so 'ld'
> > receives 'link-stripper "$(<)" "$(<).stripped"' as the end of its
> > command line.. :(
>
> The following V2 Jamfile produce two separate lines of output:
>
> make a : Jamfile : $(__name__).doit ;
>
> actions doit
> {
> echo foo
> echo bar
> }
>
> Are you sure you don't do something with the JAMSHELL variable
somehow? It's
> not set by default, and that will cause the action body to be passed
to
> shell, which can handle newslines just fine.
>
> - Volodya
>
>
>
> >
> > Matt
> >
> > --- In jamboost_at_[hidden], Vladimir Prus <ghost_at_c...> wrote:
> > > Matt Shepcar wrote:
> > > > If I try to run more than one command line in my "actions link
> >
> > bind
> >
> > > > LIBRARIES {" group in my custom compiler .jam file it tries to
> >
> > execute
> >
> > > > them as one long command line. How do I fix this?
> > >
> > > What's "more than on command line" and what problem do you have,
> >
> > precisely.
> >
> > > The entire text of "actions" block is passed to the shell. Why
it's
> >
> > not good
> >
> > > for you? You really need to provide more details.
> > >
> > > - Volodya
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >

 


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