Skip to content

Commit 910e395

Browse files
committed
[LIT] Fix lit copying path.
This commit changes directory which used to copy llvm-lit binary.
1 parent b572fc9 commit 910e395

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/build-llvm.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
cmake -G Ninja llvm -B build -DCMAKE_INSTALL_PREFIX=llvm-install \
2929
-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
3030
cmake --build build --target install
31-
cp llvm/bin/llvm-lit llvm-install/bin
3231
cd llvm-install
3332
tar -zcf ../llvm.tgz .
3433

scripts/compile.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ get_llvm() (
2121

2222
test -f "$llvm_dir/llvm-$llvm_hash"/llvm.tgz || get_llvm
2323

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
2428
cmake -S . -G Ninja -B build \
2529
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
2630
-DMLIR_DIR=$llvm_dir/lib/cmake/mlir \
27-
-DLLVM_EXTERNAL_LIT=$llvm_dir/bin/llvm-lit
31+
-DLLVM_EXTERNAL_LIT=$(which lit)
2832
cmake --build build --parallel $(nproc)

0 commit comments

Comments
 (0)