Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dca3911

Browse files
committed
Doc: Fix instructions to control build environment with MSVC
The documentation included some outdated instructions to change the architecture, build type or target OS of a build done with MSVC. This commit updates the documentation to include the modern options available, down to Visual Studio 2013. Reported-by: Kyotaro Horiguchi Author: Juan José Santamaría Flecha Discussion: https://postgr.es/m/CAC+AXB0J7tAqW_2F1fCE4Dh2=Ccz96TcLpsGXOCvka7VvWG9Qw@mail.gmail.com Backpatch-through: 12
1 parent b2304a7 commit dca3911

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

doc/src/sgml/install-windows.sgml

+13-8
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,19 @@
109109
<application>Visual Studio Command Prompt</application>.
110110
If you wish to build a 64-bit version, you must use the 64-bit version of
111111
the command, and vice versa.
112-
In the <productname>Microsoft Windows SDK</productname>, start the
113-
<application>CMD shell</application> listed under the SDK on the Start Menu.
114-
In recent SDK versions you can change the targeted CPU architecture, build
115-
type, and target OS by using the <command>setenv</command> command, e.g.
116-
<command>setenv /x86 /release /xp</command> to target Windows XP or later
117-
with a 32-bit release build. See <command>/?</command> for other options to
118-
<command>setenv</command>. All commands should be run from the
119-
<filename>src\tools\msvc</filename> directory.
112+
Starting with <productname>Visual Studio 2017</productname> this can be
113+
done from the command line using <command>VsDevCmd.bat</command>, see
114+
<command>-help</command> for the available options and their default values.
115+
<command>vsvars32.bat</command> is available in
116+
<productname>Visual Studio 2015</productname> and earlier versions for the
117+
same purpose.
118+
From the <application>Visual Studio Command Prompt</application>, you can
119+
change the targeted CPU architecture, build type, and target OS by using the
120+
<command>vcvarsall.bat</command> command, e.g.
121+
<command>vcvarsall.bat x64 10.0.10240.0</command> to target Windows 10
122+
with a 64-bit release build. See <command>-help</command> for the other
123+
options of <command>vcvarsall.bat</command>. All commands should be run from
124+
the <filename>src\tools\msvc</filename> directory.
120125
</para>
121126

122127
<para>

0 commit comments

Comments
 (0)