-
Run terminal.
-
Install clang-17 compiler using instructions from here:
wget https://apt.llvm.org/llvm.sh chmod +x llvm.sh sudo ./llvm.sh 17 all -
Build release version of google benchmark library. It doesn't matter which compiler you use to build it. Install google benchmark library with:
cmake --build "build" --config Release --target install -
Enable clang-17 compiler for building labs. If you want to make clang-17 to be the default on a system do the following:
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-17 30 sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-17 30If you don't want to make it a default, you can pass
-DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17to the CMake. -
Go to any lab and check if local lab builds are working. You can find the CMake commands here.
-
Set the frequency scaling governor to
performance.sudo cpupower frequency-set --governor performance -
(Optional) Install ninja.
$ sudo apt install ninja-buildYou can use it to build labs by passing
-G Ninjato the CMake invocation.