Build with Clang-12.
foo@bar:ch00$ bazel build --config=clang_config //main:hello-world
Test with uftrace and valgrind.
Install uftrace and valgrind in ubuntu.
foo@bar:~$ sudo apt -y install uftrace valgrind
Test hello-world program with uftrace in terminal.
foo@bar:ch00$ uftrace ./bazel-bin/main/hello-world
Test hello-world program with valgrind in terminal.
foo@bar:ch00$ valgrind ./bazel-bin/main/hello-world
Install cpplint.
foo@bar:~$ sudo apt -y install python3 && pip install cpplint
foo@bar:~$ echo "export PATH=\$PATH:\$HOME/.local/bin" >> .bashrc && source .bashrc
And do lint.
foo@bar:ch00$ cpplint main/hello-world.cc
Bazel Tutorial: Build a C++ Project