-
Install
cmake
andccache
. -
Run
cmake
.cmake -B build/ -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache cmake --build build/ ctest --test-dir build/ *
-
Install
bazel
.- For convenience, add a symlink (in PATH) or an alias
bazel
pointing atbazelisk
. - If necessary, adjust the attribute/mod so we could run it. Check by running
bazel --version
. - On Linux, add
export BAZEL_CXXOPTS=-std=c++20
to~/.bashrc
.
- For convenience, add a symlink (in PATH) or an alias
-
Run desired tests by running
bazel test [...]
. For example:bazel test examples/matmul:all [--test_output=streamed]