File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -519,6 +519,8 @@ $ make test-only
519519If you plan to frequently rebuild Node.js, especially if using several branches,
520520installing ` ccache ` can help to greatly reduce build times. Set up with:
521521
522+ On GNU/Linux:
523+
522524``` console
523525$ sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros
524526$ ccache -o cache_dir=< tmp_dir>
@@ -527,6 +529,16 @@ $ export CC="ccache gcc" # add to your .profile
527529$ export CXX=" ccache g++" # add to your .profile
528530```
529531
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+
530542This will allow for near-instantaneous rebuilds even when switching branches.
531543
532544When modifying only the JS layer in ` lib ` , it is possible to externally load it
You can’t perform that action at this time.
0 commit comments