-
Run terminal.
-
Install clang-14 compiler using instructions from here:
wget https://apt.llvm.org/llvm.sh chmod +x llvm.sh sudo ./llvm.sh 14 -
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-14 compiler for building labs. If you want to make clang-14 to be the default on a system do the following:
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-14 30 sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-14 30If you don't want to make it a default, you can pass
-DCMAKE_C_COMPILER=clang-14 -DCMAKE_CXX_COMPILER=clang++-14to 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.