From 21526e56a5f6bf7bb14268128c652634e757b678 Mon Sep 17 00:00:00 2001 From: MadLadMikael Date: Mon, 17 Mar 2025 03:16:54 -0500 Subject: [PATCH] updated readme to include how to build with msys2 clang64 --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 01d2542..0769de1 100644 --- a/README.md +++ b/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 `. + +-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