Update BUILDING.md

Add release and march options
Add ubuntu 24.04 specific options
This commit is contained in:
DHrpcs3 2024-11-09 17:25:35 +03:00 committed by GitHub
parent 5682a350a4
commit f9c67d60f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

8
.github/BUILDING.md vendored
View file

@ -26,5 +26,11 @@ git clone --recursive https://github.com/RPCSX/rpcsx && cd rpcsx
## How to compile the emulator
```
cmake -B build && cmake --build build -j$(nproc)
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_INIT="-march=native" && cmake --build build -j$(nproc)
```
For Ubuntu 24.04 you need to manually specify compiler version:
```
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_INIT="-march=native" -DCMAKE_CXX_COMPILER=g++-14 && cmake --build build -j$(nproc)
```