Skip to content

Commit

Permalink
doc: fix environment variable settings for ccache
Browse files Browse the repository at this point in the history
macOS requires `cc` and `c++` rather than `gcc` and `g++`.

Closes: #40542
  • Loading branch information
Trott committed Oct 21, 2021
1 parent 8ac9aef commit 43de2c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ installing `ccache` can help to greatly reduce build times. Set up with:
$ sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros
$ ccache -o cache_dir=<tmp_dir>
$ ccache -o max_size=5.0G
$ export CC="ccache gcc" # add to your .profile
$ export CXX="ccache g++" # add to your .profile
$ export CC="ccache gcc" # add to your .profile, use cc (not gcc) on macOS
$ export CXX="ccache g++" # add to your .profile, use c++ (not g++) on macOS
```

This will allow for near-instantaneous rebuilds even when switching branches.
Expand Down

0 comments on commit 43de2c0

Please sign in to comment.