@@ -25,9 +25,9 @@ Before the build all dependencies must be downloaded and laid out as follows:
25
25
This can be done using the following commands:
26
26
``` bash
27
27
cd < workspace>
28
- git clone https://github.com/llvm/llvm-project.git .
29
- git clone https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git
30
- git clone https://github.com/intel/opencl-clang.git
28
+ git clone https://github.com/llvm/llvm-project.git . -b release/18.x
29
+ git clone https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git -b llvm_release_180
30
+ git clone https://github.com/intel/opencl-clang.git -b ocl-open-180
31
31
```
32
32
33
33
Then we need to create a build directory and run the build:
@@ -60,7 +60,7 @@ documented in [Embedding LLVM in your project](https://llvm.org/docs/CMake.html#
60
60
Commands to checkout sources and build:
61
61
``` bash
62
62
cd < workspace>
63
- git clone https://github.com/intel/opencl-clang.git
63
+ git clone https://github.com/intel/opencl-clang.git -b ocl-open-180
64
64
mkdir build && cd build
65
65
cmake ../opencl-clang
66
66
make all -j` nproc`
@@ -70,13 +70,13 @@ make all -j`nproc`
70
70
71
71
##### Preferred LLVM version
72
72
73
- By default, opencl-clang's cmake script is searching for LLVM which is built
74
- based on the latest verion of current branch. You can override target version of
75
- LLVM by using the ` PREFERRED_LLVM_VERSION ` cmake option:
73
+ By default, opencl-clang's cmake script is searching for LLVM 17. You can
74
+ override target version of LLVM by using the ` PREFERRED_LLVM_VERSION ` cmake
75
+ option:
76
76
77
77
Example:
78
78
``` bash
79
- cmake -DPREFERRED_LLVM_VERSION=" 18 " ../opencl-clang
79
+ cmake -DPREFERRED_LLVM_VERSION=" 17 " ../opencl-clang
80
80
```
81
81
82
82
##### Custom LLVM installation
0 commit comments