Subject: [Boost-bugs] [Boost C++ Libraries] #6283: Visual Studio 11 support for Boost.Build
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-17 02:02:56
#6283: Visual Studio 11 support for Boost.Build
------------------------------+---------------------------------------------
Reporter: mloskot | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: To Be Determined | Component: build
Version: Boost 1.48.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
There seems to be no support declared for lookup of cl.exe from Visual
Studio 11 (currently available as Visual Studio 11 Developer Preview) in
Boost.Build.
I attached patch with relevant update in the tools.
* Running Boost.Build to build Boost.Asio tests from current trunk
reports:
{{{
d:\dev\boost\_svn\trunk\libs\asio\test>b2 --debug-configuration --debug-
building --debug-generator buffer.cpp
notice: found boost-build.jam at D:/dev/boost/_svn/trunk/boost-build.jam
notice: loading Boost.Build from D:/dev/boost/_svn/trunk/tools/build/v2
notice: Searching C:\Windows C:\Users\mloskot C:\Users\mloskot
D:\dev\boost\_svn\trunk\tools/build/v2
D:/dev/boost/_svn/trunk/tools/build/v2/kernel D:/dev/
boost/_svn/trunk/tools/build/v2/util
D:/dev/boost/_svn/trunk/tools/build/v2/build
D:/dev/boost/_svn/trunk/tools/build/v2/tools D:/dev/boost/_svn/trunk/tool
s/build/v2/contrib D:/dev/boost/_svn/trunk/tools/build/v2/. for site-
config configuration file site-config.jam .
notice: Loading site-config configuration file site-config.jam from
D:/dev/boost/_svn/trunk/tools/build/v2/site-config.jam .
notice: Searching C:\Users\mloskot C:\Users\mloskot
D:\dev\boost\_svn\trunk\tools/build/v2
D:/dev/boost/_svn/trunk/tools/build/v2/kernel D:/dev/boost/_svn/
trunk/tools/build/v2/util D:/dev/boost/_svn/trunk/tools/build/v2/build
D:/dev/boost/_svn/trunk/tools/build/v2/tools
D:/dev/boost/_svn/trunk/tools/build/v2/
contrib D:/dev/boost/_svn/trunk/tools/build/v2/. for user-config
configuration file user-config.jam .
notice: Loading user-config configuration file user-config.jam from
C:/Users/mloskot/user-config.jam .
notice: [msvc-cfg] msvc-10.0 detected, command: 'C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-10.0express detected, command: 'C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\bin\cl.exe'
warning: toolset msvc initialization: can not find tool cl.exe
warning: initialized from C:\Users\mloskot\user-config.jam:49
notice: will use 'cl.exe' for msvc, condition <toolset>msvc-11.0
...
}}}
* After the patch applied, it reports VS11 found:
{{{
d:\dev\boost\_svn\trunk\libs\asio\test>b2 --debug-configuration --debug-
building --debug-generator buffer.cpp
notice: found boost-build.jam at D:/dev/boost/_svn/trunk/boost-build.jam
notice: loading Boost.Build from D:/dev/boost/_svn/trunk/tools/build/v2
notice: Searching C:\Windows C:\Users\mloskot C:\Users\mloskot
D:\dev\boost\_svn\trunk\tools/build/v2
D:/dev/boost/_svn/trunk/tools/build/v2/kernel D:/dev/
boost/_svn/trunk/tools/build/v2/util
D:/dev/boost/_svn/trunk/tools/build/v2/build
D:/dev/boost/_svn/trunk/tools/build/v2/tools D:/dev/boost/_svn/trunk/tool
s/build/v2/contrib D:/dev/boost/_svn/trunk/tools/build/v2/. for site-
config configuration file site-config.jam .
notice: Loading site-config configuration file site-config.jam from
D:/dev/boost/_svn/trunk/tools/build/v2/site-config.jam .
notice: Searching C:\Users\mloskot C:\Users\mloskot
D:\dev\boost\_svn\trunk\tools/build/v2
D:/dev/boost/_svn/trunk/tools/build/v2/kernel D:/dev/boost/_svn/
trunk/tools/build/v2/util D:/dev/boost/_svn/trunk/tools/build/v2/build
D:/dev/boost/_svn/trunk/tools/build/v2/tools
D:/dev/boost/_svn/trunk/tools/build/v2/
contrib D:/dev/boost/_svn/trunk/tools/build/v2/. for user-config
configuration file user-config.jam .
notice: Loading user-config configuration file user-config.jam from
C:/Users/mloskot/user-config.jam .
notice: [msvc-cfg] msvc-11.0 detected, command: 'C:\Program Files
(x86)\Microsoft Visual Studio 11.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-10.0 detected, command: 'C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\bin\cl.exe'
notice: [msvc-cfg] msvc-10.0express detected, command: 'C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\bin\cl.exe'
notice: will use 'C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\bin\cl.exe' for msvc, condition <toolset>msvc-11.0
notice: [msvc-cfg] condition: '<toolset>msvc-11.0/<architecture>/<address-
model>', setup: 'call "C:\Program Files (x86)\Microsoft Visual Studio
11.0\VC\vcv
arsall.bat" x86 >nul
}}}
I have tested it on Windows 7 64-bit with Visual Studio 11 Developer
Preview installed along Visual Studio 2010 Express Edition with only one
entry in my user-config.jam:
{{{
using msvc : 11.0 ;
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6283> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:08 UTC