Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: dutchmega on December 29, 2006, 02:45:14 pm

Title: Suggestion: ccache support at Windows
Post by: dutchmega on December 29, 2006, 02:45:14 pm
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?
Title: Re: Suggestion: ccache support at Windows
Post by: MortenMacFly on December 29, 2006, 03:18:43 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:
Code
ccache.exe g++.exe %*
...then setup the compiler executable from "g++.exe" to "g++.bat". That' should be it. ;-)
With regards, Morten.
Title: Re: Suggestion: ccache support at Windows
Post by: dutchmega on December 29, 2006, 10:25:21 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:
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!