boostorg / build

B2 makes it easy to build C++ projects, everywhere.
Boost Software License 1.0
229 stars 47 forks source link

MSVC 16.2 - Using 'vcunk' toolset #441

Open OlafvdSpek opened 5 years ago

OlafvdSpek commented 5 years ago

Hi,

Any chance to support 16.2 (preview 1)?

**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.2.0-pre.1.0
** Copyright (c) 2019 Microsoft Corporation
**********************************************************************

C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview>cd \vc\boost_1_70_0

C:\VC\boost_1_70_0>bootstrap.bat
Building Boost.Build engine

Failed to build Boost.Build engine.
Please consult bootstrap.log for further diagnostics.

bootstrap.log:
Found with vswhere Visual Studio Locator version 2.6.7+91f4c1d09e
[query version 2.1.1046.44959]
Found with vswhere Visual Studio Locator version 2.6.7+91f4c1d09e
[query version 2.1.1046.44959]
###
### Using 'vcunk' toolset.
###

C:\VC\boost_1_70_0\tools\build\src\engine>if exist bootstrap rd /S /Q bootstrap

C:\VC\boost_1_70_0\tools\build\src\engine>md bootstrap

C:\VC\boost_1_70_0\tools\build\src\engine>cl /nologo /RTC1 /Zi /MTd
/Fobootstrap/ /Fdbootstrap/ -DNT -DYYDEBUG -wd4996 kernel32.lib
advapi32.lib user32.lib /Febootstrap\jam0 command.c compile.c
constants.c debug.c execcmd.c execnt.c filent.c frames.c function.c
glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c
make.c make1.c object.c option.c output.c parse.c pathnt.c pathsys.c
regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c
modules.c strings.c filesys.c builtins.c md5.c class.c cwd.c
w32_getreg.c native.c modules/set.c modules/path.c modules/regex.c
modules/property-set.c modules/sequence.c modules/order.c
command.c
compile.c
constants.c
debug.c
execcmd.c
execnt.c
filent.c
frames.c
function.c
glob.c
hash.c
hdrmacro.c
headers.c
jam.c
jambase.c
jamgram.c
lists.c
make.c
make1.c
object.c
Generating Code...
Compiling...
option.c
output.c
parse.c
pathnt.c
pathsys.c
regexp.c
rules.c
scan.c
search.c
subst.c
timestamp.c
variable.c
modules.c
strings.c
filesys.c
builtins.c
md5.c
class.c
cwd.c
w32_getreg.c
Generating Code...
Compiling...
native.c
set.c
path.c
regex.c
property-set.c
sequence.c
order.c
Generating Code...

C:\VC\boost_1_70_0\tools\build\src\engine>.\bootstrap\jam0 -f
build.jam --toolset=vcunk "--toolset-root=Visual Studio Locator
version 2.6.7+91f4c1d09e [query version
2.1.1046.44959]\Common7\Tools\..\..\VC\ " clean
###
### Unknown toolset: vcunk
###
### Known toolsets are: acc, borland, cc, como, clang, darwin, gcc,
gcc-nocygwin, intel-darwin, intel-linux, intel-win32, kcc, kylix,
metrowerks, mipspro, msvc, qcc, pathscale, pgi, sun, sunpro, tru64cxx,
vacpp, xlcpp, vc7, vc8, vc9, vc10, vc11, vc12, vc14, vc141, vc142,
vmsdecc
###

C:\VC\boost_1_70_0\tools\build\src\engine>.\bootstrap\jam0 -f
build.jam --toolset=vcunk "--toolset-root=Visual Studio Locator
version 2.6.7+91f4c1d09e [query version
2.1.1046.44959]\Common7\Tools\..\..\VC\ "
###
### Unknown toolset: vcunk
###
### Known toolsets are: acc, borland, cc, como, clang, darwin, gcc,
gcc-nocygwin, intel-darwin, intel-linux, intel-win32, kcc, kylix,
metrowerks, mipspro, msvc, qcc, pathscale, pgi, sun, sunpro, tru64cxx,
vacpp, xlcpp, vc7, vc8, vc9, vc10, vc11, vc12, vc14, vc141, vc142,
vmsdecc
###

C:\VC\boost_1_70_0\tools\build\src\engine>exit /b 1
abhilb commented 5 years ago

Hello,

The MSVC version numbers are (src Wikipidea): MSC 1.0 _MSC_VER == 100 MSC 2.0 _MSC_VER == 200 MSC 3.0 _MSC_VER == 300 MSC 4.0 _MSC_VER == 400 MSC 5.0 _MSC_VER == 500 MSC 6.0 _MSC_VER == 600 MSC 7.0 _MSC_VER == 700 MSVC++ 1.0 _MSC_VER == 800 MSVC++ 2.0 _MSC_VER == 900 MSVC++ 4.0 _MSC_VER == 1000 (Developer Studio 4.0) MSVC++ 4.2 _MSC_VER == 1020 (Developer Studio 4.2) MSVC++ 5.0 _MSC_VER == 1100 (Visual Studio 97 version 5.0) MSVC++ 6.0 _MSC_VER == 1200 (Visual Studio 6.0 version 6.0) MSVC++ 7.0 _MSC_VER == 1300 (Visual Studio .NET 2002 version 7.0) MSVC++ 7.1 _MSC_VER == 1310 (Visual Studio .NET 2003 version 7.1) MSVC++ 8.0 _MSC_VER == 1400 (Visual Studio 2005 version 8.0) MSVC++ 9.0 _MSC_VER == 1500 (Visual Studio 2008 version 9.0) MSVC++ 10.0 _MSC_VER == 1600 (Visual Studio 2010 version 10.0) MSVC++ 11.0 _MSC_VER == 1700 (Visual Studio 2012 version 11.0) MSVC++ 12.0 _MSC_VER == 1800 (Visual Studio 2013 version 12.0) MSVC++ 14.0 _MSC_VER == 1900 (Visual Studio 2015 version 14.0) MSVC++ 14.1 _MSC_VER == 1910 (Visual Studio 2017 version 15.0) MSVC++ 14.11 _MSC_VER == 1911 (Visual Studio 2017 version 15.3) MSVC++ 14.12 _MSC_VER == 1912 (Visual Studio 2017 version 15.5) MSVC++ 14.13 _MSC_VER == 1913 (Visual Studio 2017 version 15.6) MSVC++ 14.14 _MSC_VER == 1914 (Visual Studio 2017 version 15.7) MSVC++ 14.15 _MSC_VER == 1915 (Visual Studio 2017 version 15.8) MSVC++ 14.16 _MSC_VER == 1916 (Visual Studio 2017 version 15.9) MSVC++ 14.2 _MSC_VER == 1920 (Visual Studio 2019 Version 16.0) MSVC++ 14.21 _MSC_VER == 1921 (Visual Studio 2019 Version 16.1)

and in the bootstrap.bat file supports only up to version 14.1

So may be edit the batch file to add the line

IF "%1"=="vc142" SET TOOLSET=msvc : 14.2

and run the batch file with the vc142 as argument.

D:\boost_1_70_0>bootstrap.bat vc142

stale[bot] commented 3 years ago

Thank you for your contributions. Main development of B2 has moved to https://github.com/bfgroup/b2 This issue has been automatically marked as "transition" to indicate the potential for needing transition to the new B2 development project.