From f9c67d60f1b210a56876399959f6c11cf4183263 Mon Sep 17 00:00:00 2001 From: DHrpcs3 Date: Sat, 9 Nov 2024 17:25:35 +0300 Subject: [PATCH] Update BUILDING.md Add release and march options Add ubuntu 24.04 specific options --- .github/BUILDING.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/BUILDING.md b/.github/BUILDING.md index 5197dd0ba..d6bf878ef 100644 --- a/.github/BUILDING.md +++ b/.github/BUILDING.md @@ -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) ```