ITK/Release 4/Wrapping/ccache
From KitwarePublic
Jump to navigationJump to search
Using CCache for WrapITK
Using CCache[1] to build WrapITK can improve the build times considerably. Install ccache with Macports. The Macports installation would automatically creates the symbolic links to g++/cc compilers and put them in the directory /opt/local/libexec/ccache. The only remaining thing needed is to add this directory to the PATH variable (alternatively you can add it to the .bash_profile or .profile in home directory)
$ sudo port install ccache $ export PATH= /opt/local/libexec/ccache:$PATH
All the subsequent builds of WrapITK would use ccache and we can see a speedup of as much as 40 minutes for repeated invocations.