Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2005-07-09 19:23:18


Andrey Melnikov <melnikov_at_[hidden]> writes:

> There the following is a fragment of msvc.jam:
>
> if [ os.name ] = NT
> {
> setup = $(setup)"
> " ;
> }
> else
> {
> setup = "cmd /S /C "$(setup)" \"&&\" " ;
> }
>
> Does "else" branch really means [ os.name ] = CYGWIN ?

I believe so. I think I wrote that code.

> Why cmd approach isn't used everywhere? Is it due to overhead of
> execution a new instance of cmd.exe, or there are other reasons too?

Among others: NT Command-line length has a low limit, so it's good to
make each line as short as possible.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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