Author Topic: Suggestion: ccache support at Windows  (Read 4670 times)

dutchmega

  • Guest
Suggestion: ccache support at Windows
« 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?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Suggestion: ccache support at Windows
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

dutchmega

  • Guest
Re: Suggestion: ccache support at Windows
« Reply #2 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!