Skip to content

ccache not yet supported? #3615

@DorpsGek

Description

@DorpsGek

Quix0r opened the ticket and wrote:

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.

Reported version: trunk
Operating system: Linux


This issue was imported from FlySpray: https://bugs.openttd.org/task/3615

Metadata

Metadata

Assignees

No one assigned

    Labels

    flysprayThis issue is imported from FlySpray (https://bugs.openttd.org/)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions