Skip to content

Commit

Permalink
README; CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
rpav committed Apr 19, 2024
1 parent dd614ce commit b3b41c9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.:
Expand Down

0 comments on commit b3b41c9

Please sign in to comment.