User forums > Using Code::Blocks

Suggestion: ccache support at Windows

(1/1)

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?

--- End quote ---
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:

--- Code: ---ccache.exe g++.exe %*

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

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?

--- End quote ---
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:

--- Code: ---ccache.exe g++.exe %*

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

--- End quote ---
Thanks, that works!

Navigation

[0] Message Index

Go to full version