Updated Building for Linux (markdown)

sleepingkirby 2020-05-22 23:56:44 +08:00
parent 2c5f72ea52
commit 8b0db6a0fc

@ -34,7 +34,7 @@ You'll need to download and install the following to build Citra:
- Arch: `pacman -S base-devel`
- Fedora: `dnf install gcc-c++`
* [Clang](https://github.com/llvm-mirror/clang) 5.0+
- Deb: `apt-get install clang libc++-dev` (in some distros, clang-5.0).
- Deb: `apt-get install clang clang-format libc++-dev` (in some distros, clang-5.0).
- Arch: `pacman -S clang`, `libc++` is in the AUR. Use pacaur or yaourt to install it.
- Fedora: `dnf install clang libcxx-devel`
* [CMake](http://www.cmake.org/) 3.8+
@ -75,9 +75,9 @@ Note: It is important you use libc++, otherwise your build will likely fail:
```
mkdir build
cd build
cmake -DCMAKE_CXX_COMPILER=clang++-5.0 \
cmake .. -DCMAKE_CXX_COMPILER=clang++-5.0 \
-DCMAKE_C_COMPILER=clang-5.0 \
-DCMAKE_CXX_FLAGS="-O2 -g -stdlib=libc++" ..
-DCMAKE_CXX_FLAGS="-O2 -g -stdlib=libc++"
make
sudo make install (optional)
```