Skip to content

Commit d8699aa

Browse files
committed
Use major version 16 for pre-built llvm
1 parent 9feca68 commit d8699aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.13.4)
22

33
if(NOT DEFINED BASE_LLVM_VERSION)
4-
set(BASE_LLVM_VERSION 16.0.0)
4+
set(BASE_LLVM_VERSION 16)
55
endif(NOT DEFINED BASE_LLVM_VERSION)
66
set(OPENCL_CLANG_VERSION ${BASE_LLVM_VERSION}.0)
77

@@ -46,7 +46,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
4646
add_definitions(-DUSE_PREBUILT_LLVM)
4747

4848
if(NOT PREFERRED_LLVM_VERSION)
49-
set(PREFERRED_LLVM_VERSION "16.0.0")
49+
set(PREFERRED_LLVM_VERSION "16")
5050
endif(NOT PREFERRED_LLVM_VERSION)
5151
message(STATUS "[OPENCL-CLANG] Looking for LLVM version ${PREFERRED_LLVM_VERSION}")
5252
find_package(LLVM ${PREFERRED_LLVM_VERSION} REQUIRED)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ make all -j`nproc`
7070

7171
##### Preferred LLVM version
7272

73-
By default, openclc-clang's cmake script is searching for LLVM 16.0.0. You can
73+
By default, opencl-clang's cmake script is searching for LLVM 16. You can
7474
override target version of LLVM by using the `PREFERRED_LLVM_VERSION` cmake
7575
option:
7676

7777
Example:
7878
```bash
79-
cmake -DPREFERRED_LLVM_VERSION="16.0.0" ../opencl-clang
79+
cmake -DPREFERRED_LLVM_VERSION="16" ../opencl-clang
8080
```
8181

8282
##### Custom LLVM installation

0 commit comments

Comments
 (0)