mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-04-19 19:01:17 +00:00
updated readme to include how to build with msys2 clang64
This commit is contained in:
parent
35840c8dc6
commit
21526e56a5
10
README.md
10
README.md
@ -247,11 +247,15 @@ Once the files are generated, refresh XenonTests' CMake cache to make them appea
|
||||
|
||||
## Building
|
||||
|
||||
The project requires CMake 3.20 or later and Clang 18 or later to build. Since the repository includes submodules, ensure you clone it recursively.
|
||||
|
||||
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.
|
||||
### Windows (MSYS2)
|
||||
-install [MSYS2](https://www.msys2.org/) and use the "MSYS2 CLANG64" environment to build the project.
|
||||
|
||||
On Windows, you can use the clang-cl toolset and open the project in Visual Studio's CMake integration.
|
||||
-First, you need to install the necessary packages (`mingw-w64-clang-x86_64-cmake`, `mingw-w64-clang-x86_64-libc++`, `mingw-w64-clang-x86_64-clang` and `mingw-w64-x86_64-ninja`) with `pacman -S <package_name>`.
|
||||
|
||||
-Then, you can head into the cloned repo's directory (you can access your C drive by going into the `/c` folder inside of MSYS2), and execute the command `cmake -DCMAKE_BUILD_TYPE=Debug .`, which will generate a `build.ninja` file for the project.
|
||||
|
||||
-Finally, run the `ninja` command, and you should end up with compiled executables. Attempting to launch them will tell you about a missing `libc++.dll` file, which you can copy to your current folder with the `cp /clang64/bin/libc++.dll .` command.
|
||||
|
||||
## Special Thanks
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user