User forums > Using Code::Blocks

CCache on Windows

(1/2) > >>

BlueHazzard:
Hi!
Has someone a setup for ccache and codeblocks on windows? I wonder how it can be set up, or if there are some changes needed...

oBFusCATed:
Buy better computer, it is less hassle than using ccache :)

BlueHazzard:
With this patch it would be possible to use ccache on windows...

It basically splits the compiler command in before first space and after first space. The first part is used as the compiler, the second part is used as argument...

This would break compilation with spaces in the file name, do they exist?
A possibility would be to use a second field for "additional arguemnts" or using "" to mark the executable...
It is just an idea...


--- Quote from: oBFusCATed on April 21, 2020, 07:34:14 pm ---Buy better computer, it is less hassle than using ccache :)

--- End quote ---
This is  sadly  not an alternative at the moment....

oBFusCATed:
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...

BlueHazzard:
The target command line is

--- Code: ---ccache gcc $other parameters$
--- End code ---

So i enter

--- Code: ---ccache.exe gcc
--- End code ---
in the toolchain executable name

The problem is that codeblocks checks if the compiler is existent with wxFileExists($ENTRY_IN_TOOLCHAINEXECUTABLE$) where i put

--- Code: ---ccache.exe gcc
--- End code ---
so this test fails, but the compilation would work

With my patch the check is only performed on the part before the first ' '

--- Code: ---ccache.exe
--- End code ---
Now this check works and all compiles fine. Codeblocks compiles without problems. I used it on linux quite a lot....

[edit:]

--- Quote ---Have you tried this? Why doesn't it work?
--- End quote ---
No... this makes things more obscure... I would to prefer not..

Navigation

[0] Message Index

[#] Next page

Go to full version