Add build instructions for linux

This commit is contained in:
Dennis Stanistan 2025-03-03 09:40:58 +02:00 committed by GitHub
parent 04e716178b
commit f0e4f11a2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -252,7 +252,12 @@ The project requires CMake 3.20 or later and Clang 18 or later to build. Since t
Compilers other than Clang have not been tested and are not recommended, including for recompilation output. The project relies on compiler-specific intrinsics and techniques that may not function correctly on other compilers, and many optimization methods depend on Clang's code generation.
On Windows, you can use the clang-cl toolset and open the project in Visual Studio's CMake integration.
On Linux, you can build via the following commands after creating and entering the `build` directory:
```
cmake -S .. -B . -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang -DCMAKE_EXE_LINKER_FLAGS="-lstdc++"
cmake --build . --config Release
```
## Special Thanks
This project could not have been possible without the [Xenia](https://github.com/xenia-project/xenia) emulator, as many parts of the CPU code conversion process has been implemented by heavily referencing its PPC code translator. The project also uses code from [Xenia Canary](https://github.com/xenia-canary/xenia-canary) to patch XEX binaries.
This project could not have been possible without the [Xenia](https://github.com/xenia-project/xenia) emulator, as many parts of the CPU code conversion process has been implemented by heavily referencing its PPC code translator. The project also uses code from [Xenia Canary](https://github.com/xenia-canary/xenia-canary) to patch XEX binaries.