mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-22 06:40:07 +00:00
Clang 15+ is required to build correctly.
parent
c0fb3cf2a7
commit
3e9ec65098
@ -88,8 +88,9 @@ You'll need to download and install the following to build Citra:
|
||||
- Arch: `pacman -S base-devel`
|
||||
- Fedora: `dnf install gcc-c++`
|
||||
- OpenSUSE: `zypper in gcc-c++`
|
||||
* [Clang](https://github.com/llvm-mirror/clang) 9.0+
|
||||
- Deb: `apt install clang clang-format libc++-dev` (in some distros, clang-9.0).
|
||||
* [Clang](https://github.com/llvm-mirror/clang) 15.0+
|
||||
- Deb: `apt install clang clang-format libc++-dev`
|
||||
- Note for Ubuntu users: Clang 15 is available only from 22.10 onward. For earlier distro versions, see: https://apt.llvm.org/
|
||||
- Arch: `pacman -S clang`, `libc++` is in the AUR. Use pacaur or yaourt to install it.
|
||||
- Fedora: `dnf install clang libcxx-devel`
|
||||
- OpenSUSE: `zypper in clang`
|
||||
@ -120,7 +121,6 @@ cmake ../
|
||||
cmake --build . -- -j"$(nproc)"
|
||||
sudo make install (optional)
|
||||
```
|
||||
- To enable HLE AAC Decoding, use `cmake .. -DENABLE_FFMPEG_AUDIO_DECODER=ON` instead.
|
||||
|
||||
Optionally, you can use "cmake -i .." to adjust various options (e.g. disable the Qt GUI).
|
||||
|
||||
@ -136,6 +136,9 @@ cmake .. -DCMAKE_CXX_COMPILER=clang++-5.0 \
|
||||
-DCMAKE_CXX_FLAGS="-O2 -g -stdlib=libc++"
|
||||
cmake --build . -- -j"$(nproc)"
|
||||
sudo make install (optional)
|
||||
|
||||
If you get a weird compile error related to `std::span` conversions, make sure you are using clang and libc++ 15 or up. This is an issue with libc++ 14.
|
||||
|
||||
```
|
||||
|
||||
### Building Citra in Release Mode (Optimized):
|
||||
@ -147,7 +150,6 @@ cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||
cmake --build . -- -j"$(nproc)"
|
||||
sudo make install (optional)
|
||||
```
|
||||
- To enable HLE AAC Decoding, use `cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_FFMPEG_AUDIO_DECODER=ON` instead.
|
||||
|
||||
### Building with debug symbols:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user