Created
December 6, 2011 10:29
-
-
Save adumont/1437700 to your computer and use it in GitHub Desktop.
Use ccache to reduce build time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install ccache: | |
In Arch: | |
$ sudo pacman -S ccache | |
Or Ubuntu: | |
$ sudo apt-get install ccache | |
Then run (only needed once): | |
$ ccache -M -4g | |
(size of the cache may vary, I use 4g) | |
Before building (you can put it in your .bashrc): | |
$ export USE_CCACHE=1 | |
THen build as usual: | |
$ . build/envsetup.sh | |
$ lunch | |
$ make bacon | |
It can also be use for building kernel (big improvement): | |
Use a line like: | |
$ make 'CC="ccache arm-eabi-gcc"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment