File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 28
28
cmake -G Ninja llvm -B build -DCMAKE_INSTALL_PREFIX=llvm-install \
29
29
-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=true -DLLVM_ENABLE_PROJECTS="mlir" -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_INSTALL_UTILS=true -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
30
30
cmake --build build --target install
31
- cp llvm/bin/llvm-lit llvm-install/bin
32
31
cd llvm-install
33
32
tar -zcf ../llvm.tgz .
34
33
Original file line number Diff line number Diff line change @@ -21,8 +21,12 @@ get_llvm() (
21
21
22
22
test -f " $llvm_dir /llvm-$llvm_hash " /llvm.tgz || get_llvm
23
23
24
+ # Currently to use llvm-lit we should pack
25
+ # whole llvm-build directory. To avoid this we will
26
+ # use pip version.
27
+ pip install lit
24
28
cmake -S . -G Ninja -B build \
25
29
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
26
30
-DMLIR_DIR=$llvm_dir /lib/cmake/mlir \
27
- -DLLVM_EXTERNAL_LIT=$llvm_dir /bin/llvm- lit
31
+ -DLLVM_EXTERNAL_LIT=$( which lit)
28
32
cmake --build build --parallel $( nproc)
You can’t perform that action at this time.
0 commit comments