File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.13.4)
2
2
3
3
if (NOT DEFINED BASE_LLVM_VERSION)
4
- set (BASE_LLVM_VERSION 16.0.0 )
4
+ set (BASE_LLVM_VERSION 16)
5
5
endif (NOT DEFINED BASE_LLVM_VERSION)
6
6
set (OPENCL_CLANG_VERSION ${BASE_LLVM_VERSION} .0)
7
7
@@ -46,7 +46,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
46
46
add_definitions (-DUSE_PREBUILT_LLVM)
47
47
48
48
if (NOT PREFERRED_LLVM_VERSION)
49
- set (PREFERRED_LLVM_VERSION "16.0.0 " )
49
+ set (PREFERRED_LLVM_VERSION "16" )
50
50
endif (NOT PREFERRED_LLVM_VERSION)
51
51
message (STATUS "[OPENCL-CLANG] Looking for LLVM version ${PREFERRED_LLVM_VERSION} " )
52
52
find_package (LLVM ${PREFERRED_LLVM_VERSION} REQUIRED)
Original file line number Diff line number Diff line change @@ -70,13 +70,13 @@ make all -j`nproc`
70
70
71
71
##### Preferred LLVM version
72
72
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
74
74
override target version of LLVM by using the ` PREFERRED_LLVM_VERSION ` cmake
75
75
option:
76
76
77
77
Example:
78
78
``` bash
79
- cmake -DPREFERRED_LLVM_VERSION=" 16.0.0 " ../opencl-clang
79
+ cmake -DPREFERRED_LLVM_VERSION=" 16" ../opencl-clang
80
80
```
81
81
82
82
##### Custom LLVM installation
You can’t perform that action at this time.
0 commit comments