-
Notifications
You must be signed in to change notification settings - Fork 1
Running the LLVM Test Suite
This guide assumes you’re running Ubuntu 18.10
sudo apt install cmake
sudo apt install build-essentials
Sudo apt install python
Sudo apt install python-dev
Sudo apt install tcl
You may need tcl-dev, tcl8.6, tcl8.5, tcl8.6-dev, or tcl8.5-dev. I installed them all troubleshooting. One of them will work :
Nikk: I used tcl & tcl-dev only and it works
You will need to follow this guide to build llvm/clang but substitute in the following cmake command to include compiler-rt:
cmake -DLLVM_ENABLE_PROJECTS=”clang;compiler-rt” -G "Unix Makefiles" ../llvm
cd ~
git clone https://github.com/clang-randstruct/llvm-test-suite.git test-suite
mkdir test-suite-build
cd test-suite-build
cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_C_COMPILER=/bin/clang -C../test-suite/cmake/caches/O3.cmake ../test-suite
Make -j
To run the test-suite do the following: /bin/llvm-lit -v -j 1 -o results.json .
Do not change the -j flag if you’re benchmarking, else it should be okay