Skip to content

Commit

Permalink
propose Chocolately as package manager
Browse files Browse the repository at this point in the history
Installing the Unix tools on Windows is quite painful. To make things easier,
I explained how to use a package manager or a Docker image.

Note: This still uses the GNUWin tools as explained on this page. Once we
replace these with something else, we would also need to update the
installation commands.

Differential Revision: https://reviews.llvm.org/D97387
  • Loading branch information
ChristianKuehnel committed Mar 19, 2021
1 parent 7255747 commit 4532ab7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions llvm/docs/GettingStartedVS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,20 @@ need `GnuWin32 <http://gnuwin32.sourceforge.net/>`_ tools, too.
Do not install the LLVM directory tree into a path containing spaces (e.g.
``C:\Documents and Settings\...``) as the configure step will fail.

To simplify the installation procedure, you can also use
`Chocolatey <https://chocolatey.org/>`_ as package manager. After the
`installation <https://chocolatey.org/install>`_ of Chocolatey, run these
commands in an admin shell to install the required tools:

.. code-block:: bat
choco install -y ninja git cmake gnuwin python3
pip3 install psutil
There is also a Windows
`Dockerfile <https://github.com/llvm/llvm-zorg/blob/main/buildbot/google/docker/windows-base-vscode2019/Dockerfile>`_
with the entire build tool chain. This can be used to test the build with a
tool chain different from your host installation or to create build servers.

Getting Started
===============
Expand Down

0 comments on commit 4532ab7

Please sign in to comment.