Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 44b2b9a

Browse files
committedFeb 27, 2017
Fix toolset version for VS2017 (should be 14.1)
1 parent 1949282 commit 44b2b9a

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed
 

‎src/engine/build.bat

+8-8
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ECHO ### You can specify the toolset as the argument, i.e.:
2828
ECHO ### .\build.bat msvc
2929
ECHO ###
3030
ECHO ### Toolsets supported by this script are: borland, como, gcc, gcc-nocygwin,
31-
ECHO ### intel-win32, metrowerks, mingw, msvc, vc7, vc8, vc9, vc10, vc11, vc12, vc14, vc15
31+
ECHO ### intel-win32, metrowerks, mingw, msvc, vc7, vc8, vc9, vc10, vc11, vc12, vc14, vc141
3232
ECHO ###
3333
call :Set_Error
3434
endlocal
@@ -102,22 +102,22 @@ if not errorlevel 1 set ProgramFiles=C:\Program Files
102102

103103
call :Clear_Error
104104
if NOT "_%VS150COMNTOOLS%_" == "__" (
105-
set "BOOST_JAM_TOOLSET=vc15"
105+
set "BOOST_JAM_TOOLSET=vc141"
106106
set "BOOST_JAM_TOOLSET_ROOT=%VS150COMNTOOLS%..\..\VC\"
107107
goto :eof)
108108
call :Clear_Error
109109
if EXIST "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" (
110-
set "BOOST_JAM_TOOLSET=vc15"
110+
set "BOOST_JAM_TOOLSET=vc141"
111111
set "BOOST_JAM_TOOLSET_ROOT=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Enterprise\VC\"
112112
goto :eof)
113113
call :Clear_Error
114114
if EXIST "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" (
115-
set "BOOST_JAM_TOOLSET=vc15"
115+
set "BOOST_JAM_TOOLSET=vc141"
116116
set "BOOST_JAM_TOOLSET_ROOT=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\VC\"
117117
goto :eof)
118118
call :Clear_Error
119119
if EXIST "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
120-
set "BOOST_JAM_TOOLSET=vc15"
120+
set "BOOST_JAM_TOOLSET=vc141"
121121
set "BOOST_JAM_TOOLSET_ROOT=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\"
122122
goto :eof)
123123
call :Clear_Error
@@ -466,12 +466,12 @@ set "BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0"
466466
set "BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0"
467467
set "_known_=1"
468468
:Skip_VC14
469-
if NOT "_%BOOST_JAM_TOOLSET%_" == "_vc15_" goto Skip_VC15
469+
if NOT "_%BOOST_JAM_TOOLSET%_" == "_vc141_" goto Skip_VC141
470470
if NOT "_%VS150COMNTOOLS%_" == "__" (
471471
set "BOOST_JAM_TOOLSET_ROOT=%VS150COMNTOOLS%..\..\VC\"
472472
)
473473

474-
REM vc15 vsvarsall requires the architecture as a parameter.
474+
REM vc141 vsvarsall requires the architecture as a parameter.
475475
set BOOST_JAM_ARCH=x86
476476
if NOT "_%PROCESSOR_ARCHITECTURE%_" == "__" set BOOST_JAM_ARCH=%PROCESSOR_ARCHITECTURE%
477477
if NOT "_%Platform%_" == "__" set BOOST_JAM_ARCH=%Platform%
@@ -487,7 +487,7 @@ set "BOOST_JAM_OPT_JAM=/Febootstrap\jam0"
487487
set "BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0"
488488
set "BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0"
489489
set "_known_=1"
490-
:Skip_VC15
490+
:Skip_VC141
491491
if NOT "_%BOOST_JAM_TOOLSET%_" == "_borland_" goto Skip_BORLAND
492492
if "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
493493
call :Test_Path bcc32.exe )

‎src/engine/build.jam

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ toolset vc14 cl : /Fe /Fe /Fd /Fo : -D
402402
-I$(--python-include) -I$(--extra-include)
403403
: kernel32.lib advapi32.lib user32.lib $(--python-lib[1]) ;
404404
## Microsoft Visual C++ 2017
405-
toolset vc15 cl : /Fe /Fe /Fd /Fo : -D
405+
toolset vc141 cl : /Fe /Fe /Fd /Fo : -D
406406
: /nologo
407407
[ opt --release : /GL /MT /O2 /Ob2 /Gy /GF /GA /wd4996 ]
408408
[ opt --debug : /MTd /DEBUG /Z7 /Od /Ob0 /wd4996 ]

‎src/tools/msvc.jam

+4-5
Original file line numberDiff line numberDiff line change
@@ -907,9 +907,9 @@ local rule configure-really ( version ? : options * )
907907
# version from the path.
908908
# FIXME: We currently detect both Microsoft Visual Studio 9.0 and
909909
# 9.0express as 9.0 here.
910-
if [ MATCH "(Microsoft Visual Studio 15)" : $(command) ]
910+
if [ MATCH "(Microsoft Visual Studio[\/\\]2017)" : $(command) ]
911911
{
912-
version = 15.0 ;
912+
version = 14.1 ;
913913
}
914914
else if [ MATCH "(Microsoft Visual Studio 14)" : $(command) ]
915915
{
@@ -1595,7 +1595,7 @@ if [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ]
15951595
armv7 armv7s ;
15961596

15971597
# Known toolset versions, in order of preference.
1598-
.known-versions = 15.0 14.0 12.0 11.0 10.0 10.0express 9.0 9.0express 8.0 8.0express 7.1
1598+
.known-versions = 14.1 14.0 12.0 11.0 10.0 10.0express 9.0 9.0express 8.0 8.0express 7.1
15991599
7.1toolkit 7.0 6.0 ;
16001600

16011601
# Version aliases.
@@ -1608,7 +1608,7 @@ if [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ]
16081608
.version-alias-11 = 11.0 ;
16091609
.version-alias-12 = 12.0 ;
16101610
.version-alias-14 = 14.0 ;
1611-
.version-alias-15 = 15.0 ;
1611+
.version-alias-14.1 = 14.1 ;
16121612

16131613
# Names of registry keys containing the Visual C++ installation path (relative
16141614
# to "HKEY_LOCAL_MACHINE\SOFTWARE\\Microsoft").
@@ -1624,7 +1624,6 @@ if [ MATCH (--debug-configuration) : [ modules.peek : ARGV ] ]
16241624
.version-11.0-reg = "VisualStudio\\11.0\\Setup\\VC" ;
16251625
.version-12.0-reg = "VisualStudio\\12.0\\Setup\\VC" ;
16261626
.version-14.0-reg = "VisualStudio\\14.0\\Setup\\VC" ;
1627-
.version-15.0-reg = "VisualStudio\\15.0\\Setup\\VC" ;
16281627

16291628
# Visual C++ Toolkit 2003 does not store its installation path in the registry.
16301629
# The environment variable 'VCToolkitInstallDir' and the default installation

‎src/tools/msvc.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ def configure_really(version=None, options=[]):
773773
# FIXME: We currently detect both Microsoft Visual Studio 9.0 and
774774
# 9.0express as 9.0 here.
775775
if re.search("Microsoft Visual Studio[\/\\]2017", command):
776-
version = '15.0'
776+
version = '14.1'
777777
elif re.search("Microsoft Visual Studio 14", command):
778778
version = '14.0'
779779
elif re.search("Microsoft Visual Studio 12", command):
@@ -1265,7 +1265,7 @@ def first(self):
12651265

12661266

12671267
# Known toolset versions, in order of preference.
1268-
_known_versions = ['15.0', '14.0', '12.0', '11.0', '10.0', '10.0express', '9.0', '9.0express', '8.0', '8.0express', '7.1', '7.1toolkit', '7.0', '6.0']
1268+
_known_versions = ['14.1', '14.0', '12.0', '11.0', '10.0', '10.0express', '9.0', '9.0express', '8.0', '8.0express', '7.1', '7.1toolkit', '7.0', '6.0']
12691269

12701270
# Version aliases.
12711271
__version_alias_6 = '6.0'
@@ -1277,7 +1277,7 @@ def first(self):
12771277
__version_alias_11 = '11.0'
12781278
__version_alias_12 = '12.0'
12791279
__version_alias_14 = '14.0'
1280-
__version_alias_15 = '15.0'
1280+
__version_alias_14_1 = '14.1'
12811281

12821282
# Names of registry keys containing the Visual C++ installation path (relative
12831283
# to "HKEY_LOCAL_MACHINE\SOFTWARE\\Microsoft").
@@ -1293,7 +1293,6 @@ def first(self):
12931293
__version_11_0_reg = "VisualStudio\\11.0\\Setup\\VC"
12941294
__version_12_0_reg = "VisualStudio\\12.0\\Setup\\VC"
12951295
__version_14_0_reg = "VisualStudio\\14.0\\Setup\\VC"
1296-
__version_15_0_reg = "VisualStudio\\15.0\\Setup\\VC"
12971296

12981297
# Visual C++ Toolkit 2003 does not store its installation path in the registry.
12991298
# The environment variable 'VCToolkitInstallDir' and the default installation

0 commit comments

Comments
 (0)
Please sign in to comment.