mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 00:32:11 +00:00
Some fixes for VS2017 #157
Path autodetection to VS works only if it installed to default path
This commit is contained in:
@@ -106,9 +106,19 @@ if NOT "_%VS150COMNTOOLS%_" == "__" (
|
||||
set "BOOST_JAM_TOOLSET_ROOT=%VS150COMNTOOLS%..\..\VC\"
|
||||
goto :eof)
|
||||
call :Clear_Error
|
||||
if EXIST "%ProgramFiles%\Microsoft Visual Studio 15.0\VC\VCVARSALL.BAT" (
|
||||
if EXIST "%ProgramFiles%\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" (
|
||||
set "BOOST_JAM_TOOLSET=vc15"
|
||||
set "BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio 15.0\VC\"
|
||||
set "BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio\2017\Enterprise\VC\"
|
||||
goto :eof)
|
||||
call :Clear_Error
|
||||
if EXIST "%ProgramFiles%\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" (
|
||||
set "BOOST_JAM_TOOLSET=vc15"
|
||||
set "BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio\2017\Professional\VC\"
|
||||
goto :eof)
|
||||
call :Clear_Error
|
||||
if EXIST "%ProgramFiles%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" (
|
||||
set "BOOST_JAM_TOOLSET=vc15"
|
||||
set "BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio\2017\Community\VC\"
|
||||
goto :eof)
|
||||
call :Clear_Error
|
||||
if NOT "_%VS140COMNTOOLS%_" == "__" (
|
||||
@@ -460,7 +470,7 @@ if NOT "_%BOOST_JAM_TOOLSET%_" == "_vc15_" goto Skip_VC15
|
||||
if NOT "_%VS150COMNTOOLS%_" == "__" (
|
||||
set "BOOST_JAM_TOOLSET_ROOT=%VS150COMNTOOLS%..\..\VC\"
|
||||
)
|
||||
if "_%VCINSTALLDIR%_" == "__" call :Call_If_Exists "%BOOST_JAM_TOOLSET_ROOT%VCVARSALL.BAT" %BOOST_JAM_ARGS%
|
||||
if "_%VCINSTALLDIR%_" == "__" call :Call_If_Exists "%BOOST_JAM_TOOLSET_ROOT%Auxiliary\Build\vcvarsall.bat" %BOOST_JAM_ARGS%
|
||||
if NOT "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (
|
||||
if "_%VCINSTALLDIR%_" == "__" (
|
||||
set "PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%"
|
||||
|
||||
@@ -401,6 +401,7 @@ toolset vc14 cl : /Fe /Fe /Fd /Fo : -D
|
||||
[ opt --debug : /MTd /DEBUG /Z7 /Od /Ob0 /wd4996 ]
|
||||
-I$(--python-include) -I$(--extra-include)
|
||||
: kernel32.lib advapi32.lib user32.lib $(--python-lib[1]) ;
|
||||
## Microsoft Visual C++ 2017
|
||||
toolset vc15 cl : /Fe /Fe /Fd /Fo : -D
|
||||
: /nologo
|
||||
[ opt --release : /GL /MT /O2 /Ob2 /Gy /GF /GA /wd4996 ]
|
||||
|
||||
@@ -772,7 +772,7 @@ def configure_really(version=None, options=[]):
|
||||
# version from the path.
|
||||
# FIXME: We currently detect both Microsoft Visual Studio 9.0 and
|
||||
# 9.0express as 9.0 here.
|
||||
if re.search("Microsoft Visual Studio 15", command):
|
||||
if re.search("Microsoft Visual Studio[\/\\]2017", command):
|
||||
version = '15.0'
|
||||
elif re.search("Microsoft Visual Studio 14", command):
|
||||
version = '14.0'
|
||||
|
||||
Reference in New Issue
Block a user