Create a minimal example to create a bazel project that uses jemalloc
run the application
$ bazel run //:mainmake sure that the application links to jemalloc
$ ldd bazel-bin/mainFollow documentation at https://docs.bazel.build/versions/main/tutorial/cc-toolchain-config.html to implement this support
build and run the application using clang
$ bazel run //:main --config=clang_configThe default toolchain used is gcc
Observe the differences in the toolchain used for the 2 builds with the -s command line option to bazel