updated readme to include how to build with msys2 clang64

This commit is contained in:
MadLadMikael 2025-03-17 03:16:54 -05:00
parent 35840c8dc6
commit 21526e56a5

View File

@ -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