From c891d09bcb855d49dcd9e3b6e7bd7e9045c4deaf Mon Sep 17 00:00:00 2001 From: freiro Date: Fri, 16 Dec 2016 19:42:18 +0100 Subject: [PATCH] Added clang-cl instructions --- Building-for-Windows.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/Building-for-Windows.md b/Building-for-Windows.md index 2e573b5..13683ce 100644 --- a/Building-for-Windows.md +++ b/Building-for-Windows.md @@ -96,4 +96,29 @@ mingw32-make -j4 Doesn't require the rather large Qt dependency, but you will lack a GUI frontend. -* Pass the `-DENABLE_QT=no` flag to cmake \ No newline at end of file +* Pass the `-DENABLE_QT=no` flag to cmake + + +## Clang build using clang-cl + +#### Prerequistes to install + * **[LLVM](http://releases.llvm.org/download.html#3.9.0)** - The clang compiler + * **[Visual Studio 2015 Community](https://www.visualstudio.com/products/visual-studio-community-vs)** - **Make sure to select C++ support in the installer**. + * **[CMake](http://www.cmake.org/cmake/resources/software.html)** - Used to generate Visual Studio project files. + * **Git** - We recommend [msysgit](http://msysgit.github.io/). +Follow the installers instructions. + +#### Clone the citra repository with git. + + * `git clone --recursive https://github.com/citra-emu/citra.git` + * `cd citra` + +#### Run the following commands to build citra +``` +mkdir build +cd build +cmake.exe .. -TLLVM-vs2014 -G"Visual Studio 14 2015 Win64" -DCITRA_USE_BUNDLED_SDL2=1 -DCITRA_USE_BUNDLED_QT=1 -DCMAKE_BUILD_TYPE=Release +cmake --build --target citra-qt +# test citra out with +.\bin\Release\citra-qt +``` \ No newline at end of file