File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -523,6 +523,8 @@ $ make test-only
523
523
If you plan to frequently rebuild Node.js, especially if using several branches,
524
524
installing ` ccache ` can help to greatly reduce build times. Set up with:
525
525
526
+ On GNU/Linux:
527
+
526
528
``` console
527
529
$ sudo apt install ccache # for Debian/Ubuntu, included in most Linux distros
528
530
$ ccache -o cache_dir=< tmp_dir>
@@ -531,6 +533,16 @@ $ export CC="ccache gcc" # add to your .profile
531
533
$ export CXX=" ccache g++" # add to your .profile
532
534
```
533
535
536
+ On macOS:
537
+
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
544
+ ```
545
+
534
546
This will allow for near-instantaneous rebuilds even when switching branches.
535
547
536
548
When 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