Skip to content

Commit 0ea804b

Browse files
committed
use major version only
1 parent 904c942 commit 0ea804b

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 17.0.1)
4+
set(BASE_LLVM_VERSION 17)
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 "17.0.1")
49+
set(PREFERRED_LLVM_VERSION "17")
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 17.0.1. You can
73+
By default, openclc-clang's cmake script is searching for LLVM 17. 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="17.0.1" ../opencl-clang
79+
cmake -DPREFERRED_LLVM_VERSION="17" ../opencl-clang
8080
```
8181

8282
##### Custom LLVM installation

0 commit comments

Comments
 (0)