News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Suggestion: ccache support at Windows

Started by dutchmega, December 29, 2006, 02:45:14 PM

Previous topic - Next topic

dutchmega

Thanks to the cygwin project, ccache is also available at Windows.
However, in Global Compiler settings you can only define the program and not the commando.

g++.exe -Wall blaat.c
becomes
ccache.exe g++ -Wall blaat.c

Should be simple to implement?

MortenMacFly

Quote from: dutchmega on December 29, 2006, 02:45:14 PM
Should be simple to implement?
Without changing a single line of C::B code, too: Simply create a batch file (e.g. "g++.bat") and put into it the following code:

ccache.exe g++.exe %*

...then setup the compiler executable from "g++.exe" to "g++.bat". That' should be it. ;-)
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dutchmega

Quote from: MortenMacFly on December 29, 2006, 03:18:43 PM
Quote from: dutchmega on December 29, 2006, 02:45:14 PM
Should be simple to implement?
Without changing a single line of C::B code, too: Simply create a batch file (e.g. "g++.bat") and put into it the following code:

ccache.exe g++.exe %*

...then setup the compiler executable from "g++.exe" to "g++.bat". That' should be it. ;-)
With regards, Morten.
Thanks, that works!