Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5e2d0ed

Browse filesBrowse files
Trotttargos
authored andcommitted
doc: simplify ccache instructions
`ccache` has reasonable defaults for `max_size` and `cache_dir` so remove instructions to set those things explicitly. Change fenced code from `console` to `bash` for easier copy/paste. PR-URL: #40550 Fixes: #40542 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent c1c1738 commit 5e2d0ed
Copy full SHA for 5e2d0ed

File tree

Expand file treeCollapse file tree

1 file changed

+8
-12
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-12
lines changed
Open diff view settings
Collapse file

‎BUILDING.md‎

Copy file name to clipboardExpand all lines: BUILDING.md
+8-12Lines changed: 8 additions & 12 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -521,22 +521,18 @@ installing `ccache` can help to greatly reduce build times. Set up with:
521521

522522
On GNU/Linux:
523523

524-
```console
525-
$ sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros
526-
$ ccache -o cache_dir=<tmp_dir>
527-
$ ccache -o max_size=5.0G
528-
$ export CC="ccache gcc" # add to your .profile
529-
$ export CXX="ccache g++" # add to your .profile
524+
```bash
525+
sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros
526+
export CC="ccache gcc" # add to your .profile
527+
export CXX="ccache g++" # add to your .profile
530528
```
531529

532530
On macOS:
533531

534-
```console
535-
$ brew install ccache # see https://brew.sh
536-
$ ccache -o cache_dir=<tmp_dir>
537-
$ ccache -o max_size=5.0G
538-
$ export CC="ccache cc" # add to ~/.zshrc or other shell config file
539-
$ export CXX="ccache c++" # add to ~/.zshrc or other shell config file
532+
```bash
533+
brew install ccache # see https://brew.sh
534+
export CC="ccache cc" # add to ~/.zshrc or other shell config file
535+
export CXX="ccache c++" # add to ~/.zshrc or other shell config file
540536
```
541537

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.