User forums > Help
ccache to speed up builds
Jenna:
Using a script on linux works, if you either put it in the same place the real compiler resides (usually /usr/bin, needs root-rights) or add the directory with the script to the Additional paths in the Toolchain executables-tab.
for gcc I use ccache-gcc with the following content:
--- Code: ---#!/bin/sh
ccache gcc $@
--- End code ---
and for g++ I called my script ccache-g++:
--- Code: ---#!/bin/sh
ccache g++ $@
--- End code ---
No environment-variables needed.
don't forget to make the scripts executable (
--- Code: ---chmod +x <scriptname>
--- End code ---
[/b])
reckless:
one way to check if its working with the CC=ccache gcc variable on windows is looking in c:\username\appdata\roaming if theres a .ccache folder there with a lot of odly named files in it then it works ;)
kencamargo:
--- Quote from: jens on May 23, 2010, 07:07:32 pm ---Using a script on linux works, if you either put it in the same place the real compiler resides (usually /usr/bin, needs root-rights) or add the directory with the script to the Additional paths in the Toolchain executables-tab.
--- End quote ---
Hi Jens,
I got it working under Linux, the problem is with windows...
Thanks anyway,
Ken
kencamargo:
--- Quote from: reckless on May 23, 2010, 10:42:44 pm ---one way to check if its working with the CC=ccache gcc variable on windows is looking in c:\username\appdata\roaming if theres a .ccache folder there with a lot of odly named files in it then it works ;)
--- End quote ---
There is only one file in that folder, called "stats".
Jenna:
ccache-gcc.bat:
--- Code: ---@echo off
ccache "gcc %*"
--- End code ---
ccache-g++.bat:
--- Code: ---@echo off
ccache "g++ %*"
--- End code ---
Put them into the system-path or MinGW's bin-folder should work.
I used the "Additional paths" in "Toolchain executables"-tab.
Tested on my virtual(kvm/qemu)-vista-system.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version