| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5593dd1 commit 0a7c4ff
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -525,22 +525,18 @@ installing `ccache` can help to greatly reduce build times. Set up with: | |||
| 525 | 525 | ||
| 526 | 526 | On GNU/Linux: | |
| 527 | 527 | ||
| 528 | - ```console | ||
| 529 | - $ sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros | ||
| 530 | - $ ccache -o cache_dir=<tmp_dir> | ||
| 531 | - $ ccache -o max_size=5.0G | ||
| 532 | - $ export CC="ccache gcc" # add to your .profile | ||
| 533 | - $ export CXX="ccache g++" # add to your .profile | ||
| 528 | + ```bash | ||
| 529 | + sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros | ||
| 530 | + export CC="ccache gcc" # add to your .profile | ||
| 531 | + export CXX="ccache g++" # add to your .profile | ||
| 534 | 532 | ``` | |
| 535 | 533 | ||
| 536 | 534 | On macOS: | |
| 537 | 535 | ||
| 538 | - ```console | ||
| 539 | - $ brew install ccache # see https://brew.sh | ||
| 540 | - $ ccache -o cache_dir=<tmp_dir> | ||
| 541 | - $ ccache -o max_size=5.0G | ||
| 542 | - $ export CC="ccache cc" # add to ~/.zshrc or other shell config file | ||
| 543 | - $ export CXX="ccache c++" # add to ~/.zshrc or other shell config file | ||
| 536 | + ```bash | ||
| 537 | + brew install ccache # see https://brew.sh | ||
| 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 | ||
| 544 | 540 | ``` | |
| 545 | 541 | ||
| 546 | 542 | This will allow for near-instantaneous rebuilds even when switching branches. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments