Skip to content

Commit

Permalink
llvm minor version is required: 18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wenju-he committed Mar 26, 2024
1 parent 254dc03 commit b1e3219
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
add_definitions(-DUSE_PREBUILT_LLVM)

if(NOT PREFERRED_LLVM_VERSION)
set(PREFERRED_LLVM_VERSION "18")
set(PREFERRED_LLVM_VERSION "18.1")
endif(NOT PREFERRED_LLVM_VERSION)
message(STATUS "[OPENCL-CLANG] Looking for LLVM version ${PREFERRED_LLVM_VERSION}")
find_package(LLVM ${PREFERRED_LLVM_VERSION} REQUIRED)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ make all -j`nproc`

##### Preferred LLVM version

By default, opencl-clang's cmake script is searching for LLVM 17. You can
By default, opencl-clang's cmake script is searching for LLVM 18.1. You can
override target version of LLVM by using the `PREFERRED_LLVM_VERSION` cmake
option:

Example:
```bash
cmake -DPREFERRED_LLVM_VERSION="17" ../opencl-clang
cmake -DPREFERRED_LLVM_VERSION="18.1" ../opencl-clang
```

##### Custom LLVM installation
Expand Down

0 comments on commit b1e3219

Please sign in to comment.