Boost logo

Boost-Build :

Subject: Re: [Boost-build] prototyping alternative Boost.Build syntax
From: Stefan Seefeld (stefan_at_[hidden])
Date: 2016-10-31 12:20:02

Hi Steven,

coming back to this question...

On 29.10.2016 16:50, Steven Watanabe wrote:
>> * what is the environment an action is executed in ? Is this the
>> environment 'b2' was started in ? Can I modify that environment (either
>> globally or locally) prior to executing actions ?
> b2 doesn't change the environment at all.
> If you want to modify the environment it
> has to be done as part of the action body.

When building with MSVC, somewhere in the process one of these
"vcvars32.bat" scripts is read in to set up environment variables that
are later used during the invocation of "cl.exe" etc. As I suppose that
script isn't read in on each invocation of an action that calls one of
the MSVC tools, I suppose some form of environment sharing has to be used.
Am I wrong ?


      ...ich hab' noch einen Koffer in Berlin...

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