Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2005-08-03 09:38:29

Andrey Melnikov <melnikov_at_[hidden]> writes:

> David Abrahams wrote:
>> Andrey Melnikov <melnikov_at_[hidden]> writes:
>>>Can we just call CreateProcess to run actions, and use cmd /c only when
>>>we need to run .bat/.cmd files?
>> Yes, that's what we do when you set JAMSHELL=%.
>> Unfortunately, almost all toolsets need to execute commands that can
>> only be interpreted by the shell. Just do bjam -n -a and you will
>> see.
> I mean is it very hard to have a way to run specific commands without a
> shell?
> Most commands which suffer from buffer length limits like cl.exe don't
> require a shell.

Based on the way they're invoked, they do. There's either redirection
or piping or a .bat file needs to run first.

> For example we could have our own launch.exe helper and pass huge
> command lines to it using environment or temporary files.

Feel free to code it up. I don't see how it can be made to work
reasonably well.

Dave Abrahams
Boost Consulting

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at