| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6e3e50f commit c1c1738
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -519,6 +519,8 @@ $ make test-only | |||
| 519 | 519 | If you plan to frequently rebuild Node.js, especially if using several branches, | |
| 520 | 520 | installing `ccache` can help to greatly reduce build times. Set up with: | |
| 521 | 521 | ||
| 522 | + On GNU/Linux: | ||
| 523 | + | ||
| 522 | 524 | ```console | |
| 523 | 525 | $ sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros | |
| 524 | 526 | $ ccache -o cache_dir=<tmp_dir> | |
@@ -527,6 +529,16 @@ $ export CC="ccache gcc" # add to your .profile | |||
| 527 | 529 | $ export CXX="ccache g++" # add to your .profile | |
| 528 | 530 | ``` | |
| 529 | 531 | ||
| 532 | + On macOS: | ||
| 533 | + | ||
| 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 | ||
| 540 | + ``` | ||
| 541 | + | ||
| 530 | 542 | This will allow for near-instantaneous rebuilds even when switching branches. | |
| 531 | 543 | ||
| 532 | 544 | When modifying only the JS layer in `lib`, it is possible to externally load it | |
| Back | FazBrowse Home | New Git URL |
0 commit comments