From 735bd26ddff03d49544287b16996d8cd456c072f Mon Sep 17 00:00:00 2001 From: William Deegan Date: Tue, 21 Apr 2020 14:07:39 -0700 Subject: [ci skip] Doc updates --- src/engine/SCons/Tool/msvc.xml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/engine/SCons/Tool/msvc.xml b/src/engine/SCons/Tool/msvc.xml index bdde91b..97de279 100644 --- a/src/engine/SCons/Tool/msvc.xml +++ b/src/engine/SCons/Tool/msvc.xml @@ -478,48 +478,48 @@ Valid values are '1' or '0' -Specify the location of vswhere.exe. +Specify the location of vswhere.exe. - The vswhere command is distributed with Microsoft Visual Studio and Build - Tools since the 2017 edition, but is also available standalone. It fully detects 2017 and later editions, - but with the argument, can detect installations of the 2010 through 2015 + The vswhere.exe executable is distributed with Microsoft Visual Studio and Build + Tools since the 2017 edition, but is also available standalone. + It provides full information about installations of 2017 and later editions. + With the argument, vswhere.exe can detect installations of the 2010 through 2015 editions with limited data returned. -If &cv-VSWHERE; is set, SCons will use that location. +If VSWHERE is set, SCons will use that location. - Otherwise SCons will look in the following locations and set &cv-VSWHERE; to the path of the first vswhere.exe + Otherwise SCons will look in the following locations and set VSWHERE to the path of the first vswhere.exe located. -%ProgramFiles(x86)%\Microsoft Visual Studio\Installer -"%ProgramFiles%\Microsoft Visual Studio\Installer -%ChocolateyInstall%\bin +%ProgramFiles(x86)%\Microsoft Visual Studio\Installer +%ProgramFiles%\Microsoft Visual Studio\Installer +%ChocolateyInstall%\bin -Note that &cv-VSWHERE; must be set at the same time or prior to the msvc tool being initialized. So either set it as follows + Note that VSWHERE must be set at the same time or prior to any of &t-link-msvc;, &t-link-msvs; , and/or &t-link-mslink; &f-link-Tool; being initialized. + Either set it as follows env = Environment(VSWHERE='c:/my/path/to/vswhere') -or if your Environment() is created specifying no tools +or if your &f-link-Environment; is created specifying no tools tools=[] -or with a list of tools not including msvs or msvc or mslink such as +or with an empty list of tools or with a list of tools which doesn't include &t-link-default;, &t-link-msvs;, &t-link-msvc; or &t-link-mslink;. - env = Environment(Tools=[]) + env = Environment(tools=[]) env['VSWHERE'] = r'c:/my/vswhere/install/location/vswhere.exe' - env.Tool() + env.Tool('msvc') + env.Tool('mslink') + env.Tool('msvs') - - - - -- cgit v0.12