OpenTTD

Tasklist

FS#3615 - ccache not yet supported?

Attached to Project: OpenTTD
Opened by Roland Haeder (Quix0r) - Friday, 12 February 2010, 23:54 GMT
Last edited by Remko Bijker (Rubidium) - Saturday, 13 February 2010, 00:20 GMT
Type Feature Request
Category Build system
Status Closed
Assigned To No-one
Operating System Linux
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I would love to see support for ccache in OpenTTD which is results with recent updated trunk (r19114) in non-working confgure and build steps. For example Speed-Dreams or UFO:AI, FlightGear and many other projects with the GNU make system work perfectly (Debian Unstable) with it.

ccache can be found here:
http://ccache.samba.org

As it claims for itself, it speeds up re-compiling nicely which is definedly true when you need to do a "make clean" to cleanup all objects (for what every strange linker/precompiler reasons).

To enable this feature, do the following before compiling (you need to "./configure --your-foo-params && make clean" for better testing):
export CC="ccache gcc"
export CXX="ccache g++"

If you want to make this permanently - wisely if you need to recompile often - add these two lines into your $HOME/.bashrc file and re-login.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Saturday, 13 February 2010, 00:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r19116
Comment by Roland Haeder (Quix0r) - Saturday, 13 February 2010, 00:00 GMT
Or they work nearly flawless, I didn't notice any problems with those games while compiling with ccache.
Comment by Roland Haeder (Quix0r) - Saturday, 13 February 2010, 00:08 GMT
Hmmm, --with-ccache is there but it conflicts with the mentioned environment variables. A workaround is to add two lines just after the $id$ line:

unset CC
unset CXX

Which temporary removes the conflicting variables.

Edit: This is the problematic one. :)))
Comment by Zdeněk Sojka (SmatZ) - Saturday, 13 February 2010, 00:17 GMT
What exactly is the problem?
./configure --with-ccache enables ccache
You also mentioned the possibility of setting env variables.

Loading...