Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ccache not yet supported? #3615

Closed
DorpsGek opened this issue Feb 13, 2010 · 4 comments
Closed

ccache not yet supported? #3615

DorpsGek opened this issue Feb 13, 2010 · 4 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

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
@DorpsGek
Copy link
Member Author

Quix0r wrote:

Or they work nearly flawless, I didn't notice any problems with those games while compiling with ccache.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3615#comment7580

@DorpsGek
Copy link
Member Author

Quix0r wrote:

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. :)))


This comment was imported from FlySpray: https://bugs.openttd.org/task/3615#comment7581

@DorpsGek
Copy link
Member Author

SmatZ wrote:

What exactly is the problem?
./configure --with-ccache enables ccache
You also mentioned the possibility of setting env variables.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3615#comment7582

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r19116


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

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Build system labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant