Skip to content

Instantly share code, notes, and snippets.

@SunRain
Forked from adumont/ccache_help
Created January 14, 2012 02:12
Show Gist options
  • Save SunRain/1609909 to your computer and use it in GitHub Desktop.
Save SunRain/1609909 to your computer and use it in GitHub Desktop.
Use ccache to reduce build time
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