Mon 19 Jul 2010
ccache configure option for mozilla
Posted by Brad Lassey under Mozilla
[3] Comments
On Friday I landed a patch for bug 577636, which adds an option to mozilla-central’s configure to use ccache for your build. You can just add --with-ccache=<path to ccache> to your mozconfig to begin building with ccache. Or you can just use --with-ccache=ccache if ccache is already in your path.
This was possible before by adding CC=ccache gcc and the such to your mozconfig, but hopefully the configure option is slightly more convenient for everyone. The real value is for cross compiles where we jump through a few hoops to find the right toolchain and specifying CC and the such in your mozconfig is more than a little complicated.
Update:--with-ccache=ccache no longer works. You need to either have --with-ccache or --with-ccache=absolute/path/to/ccache
3 Responses to “ ccache configure option for mozilla ”
Trackbacks & Pingbacks:
-
[...] This post was mentioned on Twitter by Deb Richardson, Planet Repeater. Planet Repeater said: Brad Lassey: ccache configure option for mozilla http://dlvr.it/2mjdn [...]
[WORDPRESS HASHCASH] The comment’s server IP (208.74.66.43) doesn’t match the comment’s URL host IP (74.112.128.10) and so is spam.
If you already have ccache in your path, why doesn’t it just magically work like it does for everything else? You have symlinks from “gcc” and such to ccache, and ccache magically does the right thing.
if you have symlinks from gcc to ccache it should just magically work for builds that are using gcc because you’ve set that up. It doesn’t just magically work if you’re using something other than host gcc, as is the case with cross compiles.