Boost logo

Boost-Build :

Subject: Re: [Boost-build] Problem when specifying msvc-9.0
From: Edward Diener (eldiener_at_[hidden])
Date: 2018-11-15 17:20:22

On 11/15/2018 10:20 AM, Steven Watanabe via Boost-build wrote:
> On 11/14/2018 10:56 PM, Edward Diener via Boost-build wrote:
>> On 11/14/2018 10:52 PM, Steven Watanabe via Boost-build wrote:
>>> On 11/14/2018 06:59 PM, Edward Diener via Boost-build wrote:
>>>> On the latest 'develop' branch if I specify b2 toolset=msvc-9.0 I get no
>>>> 'cl' found. Other msvc toolsets, such as msvc-8.0, msvc-10.0, msvc-11.0,
>>>> msvc-12.0, msvc-14.0, and msvc-14.1 all work properly. If I run
>>>> "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
>>>> x86 or "C:\Program Files (x86)\Microsoft Visual Studio
>>>> 9.0\VC\vcvarsall.bat" amd64 the proper vc++9.0 environments are setup
>>>> and cl /? shows that cl is found. Ideas ?
>>> What is the command that b2 uses?
>> b2 toolset=msvc-9.0
>> in, let's say, the boost/preprocessor/test directory with a
>> user-config.jam of:
>> using msvc ;
> I meant, what is the cl.exe command that
> Boost.Build issues (including the setup
> script call)?

The b2 output for msvc-9.0 starts as:

    -TP /Z7 /Od /Ob0 /W4 /GR /MDd /Zc:forScope /Zc:wchar_t /wd4675 /EHs -c

      cl /Zm800 -nologo

'cl' is not recognized as an internal or external command,
operable program or batch file.
...failed compile-c-c++

The b2 output for msvc-10.0 starts as:

    -TP /Z7 /Od /Ob0 /W4 /GR /MDd /Zc:forScope /Zc:wchar_t /wd4675 /EHs -c

x86 >nul
  cl /Zm800 -nologo


     echo passed >

You can clearly see that the 'call' line is missing from the msvc-9.0
output so naturally 'cl' is not recognized.

The exact same user-config.jam is being used for both, which just contains:

using msvc ;

The b2 command for msvs-9.0 is just:

b2 toolset=msvc-9.0

and the b2 command for msvc-10.0 is just:

b2 toolset=msvc-10.0

> In Christ,
> Steven Watanabe

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