propose Chocolately as package manager
authorChristian Kühnel <kuhnel@google.com>
Wed, 24 Feb 2021 14:50:02 +0000 (15:50 +0100)
committerChristian Kühnel <kuhnel@google.com>
Fri, 19 Mar 2021 15:15:18 +0000 (16:15 +0100)
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

llvm/docs/GettingStartedVS.rst

index 2ed4397..2178c41 100644 (file)
@@ -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
 ===============