1.2 KiB
Lean for Windows
A native Lean binary for Windows can be generated using MSYS2. It is easy to install all dependencies, it produces native 64/32-binaries, and supports a C++14 compiler.
Installing dependencies
The official webpage of MSYS2 provides one-click installers. Once installed, you should run the "MSYS2 MinGW 64-bit shell" from the start menu. Do not run "MSYS2 MSYS" instead! MSYS2 has a package management system, pacman, which is used in Arch Linux.
Here are the commands to install all dependencies needed to compile Lean on your machine.
pacman -S make mingw-w64-x86_64-cmake mingw-w64-x86_64-ccache mingw-w64-x86_64-gcc git
Then follow the generic build instructions in the MSYS2 MinGW shell, using
cmake ../.. -G "Unix Makefiles" instead of cmake ../... This ensures that cmake will call sh instead
of cmd.exe for script tasks.
Install lean
You can use the install ninja/make target to install Lean into, by default,
C:\\User Programs (x86)\\LEAN. To change this, add -DCMAKE_INSTALL_PREFIX=path/you/want
to your cmake invocation.