From 7f168e0aed1f9608e2681ccf0c52b4439c4355df Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Wed, 11 Oct 2023 13:59:26 +0800 Subject: [PATCH] doc: improve ccache explanation ccache improves the build speed significantly only when the branch was built before. Building fresh branches with major changes are not benefited from ccache. --- BUILDING.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BUILDING.md b/BUILDING.md index f9cb6957fabdc8..8b0aba227e984c 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -543,7 +543,8 @@ export CC="ccache cc" # add to ~/.zshrc or other shell config file export CXX="ccache c++" # add to ~/.zshrc or other shell config file ``` -This will allow for near-instantaneous rebuilds even when switching branches. +This will allow for near-instantaneous rebuilds when switching branches back +and forth that were built with cache. When modifying only the JS layer in `lib`, it is possible to externally load it without modifying the executable: