delve/Documentation/installation/windows/install.md
Derek Parker 63a660820e docs: Move wiki docs into Documentation dir
Going forward, all documentation should be placed in the Documentation
directory in the root of the project. This switch allows maintainers to
approve updates to documentation before they are committed, as opposed
to the pre-existing wiki which anybody could modify.

Currently the Documentation directory includes docs on building, usage,
and minimal docs around the API. This is just the initial commit, and
documentation will continue to improve over time.

Some changes have been made (and will continue to be made) to `cmd/dlv` to
ensure we can auto-generate documentation for all commands from the
newly provided script `scripts/gen-usage-docs.go`, which can be invoked
via `go run scripts/gen-usage-docs.go`.

Additionally, version has been split into its own package. This was a
bit of housekeeping related to the changes made the `cmd/dlv`.
2016-02-19 10:47:46 -08:00

1.1 KiB

Installation on Windows

Please use the following steps to build and install Delve on Windows.

If you have a unix-y shell on Windows (MSYS2, CYGWIN or other), follow the Linux installation directions.

From a standard Windows cmd shell, use the following steps:

1) Install MinGW

Install MinGW-W64 to get a GCC toolchain which is required to build with CGO on Windows.

You should select:

  • Version: Latest available (5.3.0 at time of writing)
  • Architecture: x86_64
  • Threads: posix (shouldn't actually matter)
  • Exception: seh (shouldn't actually matter)
  • Build revision: Latest available (0 at time of writing)

2) Make and install the dlv binary

$ mingw32-make install

Note: If you are using Go 1.5 you must set GO15VENDOREXPERIMENT=1 before continuing. The GO15VENDOREXPERIMENT env var simply opts into the Go 1.5 Vendor Experiment.