aboutsummaryrefslogtreecommitdiff
path: root/BOOTSTRAP-MSVC.cli
blob: 5916d5531b132f78a04e94022ddee2eb366ac850 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// file      : BOOTSTRAP-MSVC.cli
// copyright : Copyright (c) 2014-2016 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

"
Continuing from \l{#BOOTSTRAP-WINDOWS Bootstrapping on Windows}, if you have
already started an appropriate Visual Studio command prompt, then you can
continue using it. Otherwise, start the \"x64 Native Tools Command Prompt\" if
you are on 64-bit Windows or \"x86 Native Tools Command Prompt\" if you are on
32-bit. Also set the \c{PATH} environment variable:

\
> set PATH=C:\build2\bin;%PATH%
\

To build with MSVC you can either perform the following steps manually or, if
after reviewing the steps you are happy with using the defaults, run the
\c{build-msvc.bat} batch file. It performs (and echoes) the same set of steps
as outline below but only allows you to customization the installation
directory (run \c{build-msvc.bat /?} for usage). You can also specify an
alternative package repository with the \c{BUILD2_REPO} environment variable.

For example, you could run this batch file (from the above-mentioned command
prompt) like this:

\
> .\build-msvc.bat
\
"