ITK/Release 4/Wrapping/ccache

From KitwarePublic
< ITK‎ | Release 4‎ | Wrapping
Revision as of 21:39, 22 March 2011 by Ashishs99 (talk | contribs) (Created page with "= Using CCache for WrapITK = Using CCache[http://ccache.samba.org] to build WrapITK can improve the build times considerably. Install ccache with Macports. The Macports installa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.