From f0e4f11a2d369af554628a3995cbb81eaa0ab516 Mon Sep 17 00:00:00 2001 From: Dennis Stanistan Date: Mon, 3 Mar 2025 09:40:58 +0200 Subject: [PATCH] Add build instructions for linux --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1621434..d6dba6a 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file +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.