using ccache
-
- Posts: 616
- Joined: August 22nd, 2003, 11:49 am
- Contact:
using ccache
How do I use ccache to improve recompiling speed?
For example, I build firefox daily from MOZILLA_1_8_BRANCH on my archlinux.Can somebody refresh my memory with how to use ccache when recompiling firefox to speed things up?
For example, I build firefox daily from MOZILLA_1_8_BRANCH on my archlinux.Can somebody refresh my memory with how to use ccache when recompiling firefox to speed things up?
- RabidPenguin
- Posts: 1661
- Joined: June 15th, 2003, 8:39 pm
- Location: USA
- Contact:
I include at the beginning of my build script. If I don't want to use ccache for a particular build I just comment that line out. I didn't have to symlink anything to make it work.
Code: Select all
export PATH=/usr/lib/ccache:$PATH
-
- Posts: 26
- Joined: December 31st, 1969, 5:00 pm
- Location: On a train
I use the following in autofox.sh:
Code: Select all
export CC="ccache gcc"
export CXX="ccache g++"
export CCACHE_HARDLINK="1"
export CCACHE_DIR="/path/to/ccache/directory"
-
- Posts: 616
- Joined: August 22nd, 2003, 11:49 am
- Contact:
-
- Posts: 26
- Joined: December 31st, 1969, 5:00 pm
- Location: On a train
I don't bother with the packaging script. I simply compress /dist/bin
Code: Select all
tar -C dist -jhcf $STAGEDIR/$buildfilename bin/
-
- Posts: 1988
- Joined: February 9th, 2003, 3:25 pm
-
- Posts: 616
- Joined: August 22nd, 2003, 11:49 am
- Contact:
-
- Posts: 616
- Joined: August 22nd, 2003, 11:49 am
- Contact:
CrazyFred:
I can howerver build the installer 'firefox-2.0a1.en-US.linux-i686.installer.tar.gz' using 'make -C firefox-release/browser/installer installer '
Code: Select all
Creating package directory...
rm -f -rf ../../dist/xpt
/usr/bin/perl -I/home/hussam/packages/firefox/mozilla/xpinstall/packager -e 'use Packager; \
Packager::Copy("../../dist", "../../dist/firefox", \
"packages-static", "unix", 1, 0, 1);'
Error: package file "SCALAR(0x81516f8)" is not a file or is unreadable.
See '-e --help' for more information.
Exiting...
make[1]: *** [firefox-2.0a1.en-US.linux-i686.tar.gz] Error 4
make[1]: Leaving directory `/home/hussam/packages/firefox/mozilla/firefox-release/browser/installer'
make: *** [all] Error 2
make: Leaving directory `/home/hussam/packages/firefox/mozilla/firefox-release/browser/installer'
I can howerver build the installer 'firefox-2.0a1.en-US.linux-i686.installer.tar.gz' using 'make -C firefox-release/browser/installer installer '
-
- Posts: 616
- Joined: August 22nd, 2003, 11:49 am
- Contact:
-
- Posts: 616
- Joined: August 22nd, 2003, 11:49 am
- Contact: