Note: Depending on your distro, the version of CMake you get may not be what's required to build yuzu. Check with `cmake --version`. Version 3.6 or greater is required for you to be able to build!
@ -54,17 +54,16 @@ Note: Depending on your distro, the version of CMake you get may not be what's r
The `--recursive` option automatically clones the required Git submodules.
### Building yuzu in Debug Mode (Slow)
### Building yuzu in Release Mode (Optimized)
#### Using GCC
```bash
mkdir build && cd build
cmake ../
make
sudo make install
cmake .. -GNinja
ninja
sudo ninja install # (currently doesn't work, needs to be fixed)
```
Note: You can use **make -jN** where N is the number of processors available to accelerate building.
Optionally, you can use `cmake -i ..` to adjust various options (e.g. disable the Qt GUI).
@ -74,12 +73,12 @@ Note: It is important you use libc++ vs., otherwise your build will likely fail.
```bash
mkdir build && cd build
cmake -DCMAKE_CXX_COMPILER=clang++-3.8 \
cmake -GNinja \
-DCMAKE_CXX_COMPILER=clang++-3.8 \
-DCMAKE_C_COMPILER=clang-3.8 \
-DCMAKE_CXX_FLAGS="-O2 -g -stdlib=libc++" \
..
make
sudo make install # (currently doesn't work, needs to be fixed)
ninja
```
Debian/Ubuntu: Owing to bug [#808086](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808086) the build might