diff --git a/CMakeLists.txt b/CMakeLists.txt index e547852..5c6c953 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ project(c2ffi) set(SOURCE_ROOT ${CMAKE_CURRENT_SOURCE_DIR}) # Apparently the LLVM package doesn't support ranges -find_package(LLVM 17.0.0 CONFIG) +find_package(LLVM 18.1.0 CONFIG) find_package(Clang REQUIRED CONFIG) message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") diff --git a/README.md b/README.md index 85c6b6b..4593daa 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,9 @@ LLVM/Clang: * 15.0.0: branch `llvm-15.0.0` *deprecated* * 16.0.6: branch `llvm-16.0.0` *old* * 17.0.6: branch `llvm-17.0.0` *current* +* 18.1.x: branch `llvm-18.1.0` *current* -Developement will always take place in `llvm-X.Y`, according to the +Development will always take place in `llvm-X.Y`, according to the appropriate version of LLVM. **The *master* branch has been removed.** Check out the appropriate version for your LLVM. @@ -17,6 +18,17 @@ version than supported, posting a ticket *with build log* after having bumped the LLVM version in `CMakeLists.txt` would be helpful; you may not even need changed beyond that (feel free to post an PR if this is the case). +**Windows:** This apparently builds and works in Windows now as well, with MSYS2; +make sure you have the following: + +``` +$ pacman -S mingw-w64-x86_64-clang mingw-w64-x86_64-clang-tools-extra gcc cmake ninja +$ mkdir build; cd build +$ cmake -G Ninja .. +``` + +(I couldn't get make to work; nor have I tried building this with clang.) + `c2ffi` now provides tagged versions as well. To hopefully avoid confusion, these correlate to the appropriate version of LLVM, along with an additional release number for c2ffi, e.g.: