- Clone SharpLang to
<SharpLang>
with submodules. - Download
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.0/threads-win32/dwarf/i686-4.9.0-release-win32-dwarf-rt_v3-rev2.7z/download
and extract it in<SharpLang>\deps
. - Download and install CMake. Alternatively, extract the zip archive and add
bin
directory to PATH. - Download and install python. Alternatively, set
PYTHON_EXECUTABLE:FILEPATH
variable in<SharpLang>\deps\llvm\build\CMakeCache.txt
to<SharpLang>/deps/mingw32/opt/bin/python.exe
. - Download SWIG and extract it in
<SharpLang>\tools\swig
. - Run
<SharpLang>\deps\build_llvm_clang_vs2013.bat
. This will build LLVM and Clang both in RelWithDebInfo and Debug mode with VS2013. - Run
<SharpLang>\build\GenerateProjects.bat
. - Run
<SharpLang>\src\SharpLang.Runtime\BuildRuntime.bat
. - Open
<SharpLang>\build\vs2013\SharpLang.sln
. - Switch Active solution platform to x86 in Build > Configuration Manager.
- Build and play with tests. NUnit Test Adapter extension has to be installed in order to get test cases listed in Test Explorer.
Note: In default mode (Debug and RelWithDebInfo) the build artefacts require about 14 GB of disk space.