User forums > Using Code::Blocks

CCache on Windows

<< < (2/2)

oBFusCATed:
I've used ccache in the past and it was a disaster. Then I've stopped using it.
Please don't apply this patch... it doesn't make sense.


--- Quote from: BlueHazzard on April 22, 2020, 09:40:15 pm ---No... this makes things more obscure... I would to prefer not..

--- End quote ---
Why? What is obscure by naming your executables ccache-gcc.bat and ccache-g++.bat ? It is pretty clear what is going on.

oBFusCATed:
Also how does ccache interact with pch? If you edit some sdk header you'll have to rebuild everything anyway, so you won't win anything in compile time.

It seems the interaction is bad https://ccache.dev/manual/3.7.9.html#_precompiled_headers by the looks of it C::B's build would either fail or fallback to a compiler, because we don't do any of these things.

sherylbrock:

--- Quote from: oBFusCATed on April 22, 2020, 07:19:06 pm ---Generally on linux this is done by wrapping gcc/g++ in script files which execute the compiler. Have you tried this? Why doesn't it work?

I don't understand how this patch works. You'll have to provide an example what is the value before space and after space?
Have you tried it? Because ccache is funky busyness. Most of the savings in compile time are wasted debugging why it has decided that something doesn't need to be rebuilt and when it should have.

I guess the next step for you'll be to get on the unity build train...
These are non-solutions (same as pch), but backwards compatibility is king, we cannot break it...

--- End quote ---

Thank you so much for your guide oBFusCATed...

Regards
Shey

Navigation

[0] Message Index

[*] Previous page

Go to full version