diff --git a/BUILDING.md b/BUILDING.md index c12a45cfe30120..8a8c544d46f9ac 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -525,22 +525,18 @@ installing `ccache` can help to greatly reduce build times. Set up with: On GNU/Linux: -```console -$ sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros -$ ccache -o cache_dir= -$ ccache -o max_size=5.0G -$ export CC="ccache gcc" # add to your .profile -$ export CXX="ccache g++" # add to your .profile +```bash +sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros +export CC="ccache gcc" # add to your .profile +export CXX="ccache g++" # add to your .profile ``` On macOS: -```console -$ brew install ccache # see https://brew.sh -$ ccache -o cache_dir= -$ ccache -o max_size=5.0G -$ export CC="ccache cc" # add to ~/.zshrc or other shell config file -$ export CXX="ccache c++" # add to ~/.zshrc or other shell config file +```bash +brew install ccache # see https://brew.sh +export CC="ccache cc" # add to ~/.zshrc or other shell config file +export CXX="ccache c++" # add to ~/.zshrc or other shell config file ``` This will allow for near-instantaneous rebuilds even when switching branches.