You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and then edit the `data/config` file to your needs.
9656
9614
9615
+
=== Build the documentation
9616
+
9617
+
You don't need to depend on GitHub:
9618
+
9619
+
....
9620
+
./build-doc
9621
+
xdg-open out/README.html
9622
+
....
9623
+
9624
+
Source: link:build-doc[]
9625
+
9657
9626
=== Clean the build
9658
9627
9659
9628
You did something crazy, and nothing seems to work anymore?
@@ -9702,16 +9671,46 @@ Verify with:
9702
9671
ls "$(./getvar build_dir)"
9703
9672
....
9704
9673
9705
-
=== Build the documentation
9674
+
=== ccache
9706
9675
9707
-
You don't need to depend on GitHub:
9676
+
link:https://en.wikipedia.org/wiki/Ccache[ccache] <<benchmark-builds,might>> save you a lot of re-build when you decide to <<clean-the-build>> or create a new <<build-variants,build variant>>.
9677
+
9678
+
We have ccache enabled for everything we build by default.
9679
+
9680
+
However, you likely want to add the following to your `.bashrc` to take better advantage of `ccache`:
9708
9681
9709
9682
....
9710
-
./build-doc
9711
-
xdg-open out/README.html
9683
+
export CCACHE_DIR=~/.ccache
9684
+
export CCACHE_MAXSIZE="20G"
9712
9685
....
9713
9686
9714
-
Source: link:build-doc[]
9687
+
We cannot automate this because you have to decide:
9688
+
9689
+
* should I store my cache on my HD or SSD?
9690
+
* how big is my build, and how many build configurations do I need to keep around at a time?
9691
+
9692
+
If you don't those variables it, the default is to use `~/.buildroot-ccache` with `5G`, which is a bit small for us.
9693
+
9694
+
To check if `ccache` is working, run this command while a build is running on another shell:
0 commit comments