Skip to content

Instantly share code, notes, and snippets.

@SunRain
Forked from adumont/ccache_help
Created January 14, 2012 02:12

Revisions

  1. @adumont adumont created this gist Dec 6, 2011.
    31 changes: 31 additions & 0 deletions ccache_help
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    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"