| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c1c1738 commit 5e2d0ed
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -521,22 +521,18 @@ installing `ccache` can help to greatly reduce build times. Set up with: | |||
| 521 | 521 | ||
| 522 | 522 | On GNU/Linux: | |
| 523 | 523 | ||
| 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 | ||
| 530 | 528 | ``` | |
| 531 | 529 | ||
| 532 | 530 | On macOS: | |
| 533 | 531 | ||
| 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 | ||
| 540 | 536 | ``` | |
| 541 | 537 | ||
| 542 | 538 | This will allow for near-instantaneous rebuilds even when switching branches. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments