Skip to content

Commit

Permalink
doc: improve ccache explanation
Browse files Browse the repository at this point in the history
ccache improves the build speed significantly only when the branch was
built before. Building fresh branches with major changes are not
benefited from ccache.

PR-URL: #50133
Fixes: #49967
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
legendecas authored and targos committed Nov 11, 2023
1 parent 73757a5 commit 33470d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 33470d9

Please sign in to comment.