Hello again,

I took a look at ccache but it doesn't provide the functionality I need. As far 
as I understand, it is useful if you use 'make clean' and 'make' on whole 
projects but not if you compile a single executable.
I am not an expert but for cotire it seems to be the same.
One solution to my problem could be found here:

https://github.com/nanoant/CMakePCHCompiler

however I did not test it and I am lacking the time to do it right now.

Maybe this helps someone.

Best regards
Georg

-----Ursprüngliche Nachricht-----
Von: Dumux [mailto:dumux-boun...@listserv.uni-stuttgart.de] Im Auftrag von 
georg.fut...@dlr.de
Gesendet: Freitag, 5. April 2019 11:40
An: dumux@listserv.uni-stuttgart.de
Betreff: Re: [DuMuX] Precompiled headers in Dumux?

Hi Timo,

Thanks for the hint. I will take a look at ccache. I will let you know when I 
get something to work.

Georg

-----Ursprüngliche Nachricht-----
Von: Dumux [mailto:dumux-boun...@listserv.uni-stuttgart.de] Im Auftrag von Timo 
Koch
Gesendet: Freitag, 5. April 2019 09:47
An: DuMuX User Forum
Betreff: Re: [DuMuX] Precompiled headers in Dumux?

Hi Georg,

instead of precompiled headers you could give ccache a try. It caches 
compilation steps so you will only recompile stuff that actually changed. This 
might also speed up the compilation of the rest of the program. 

If you decide to do it I would be interested in the results ;)

Timo

> Am 05.04.2019 um 09:03 schrieb <georg.fut...@dlr.de> <georg.fut...@dlr.de>:
> 
> Hi Christoph,
> 
> Thank you for your help.
> 
> The top answer to [1] is to use cotire. I will try to make it work.
> 
> Bye
> Georg
> 
> -----Ursprüngliche Nachricht-----
> Von: Dumux [mailto:dumux-boun...@listserv.uni-stuttgart.de] Im Auftrag von 
> Christoph Grüninger
> Gesendet: Freitag, 5. April 2019 00:05
> An: dumux@listserv.uni-stuttgart.de
> Betreff: Re: [DuMuX] Precompiled headers in Dumux?
> 
> Hi Georg,
> there is no Dune magic involved preventing you from using precomiled
> headers. But CMake does not offer a built-in way to use them, see for
> example [1] for ways to achieve what you want.
> 
> [1]
> https://stackoverflow.com/questions/148570/using-pre-compiled-headers-with-cmake
> 
> Beside using PCH, you can also adjust some switches for exprt.hpp to
> reduce the compilation time and pay with a slower runtime.
> I assume you already have an SSD and you are using the latest Clang.
> 
> Bye
> Christoph
> 
> -- 
> Nous vivons une époque où les pizzas arrivent plus vite que la police.
> [Claude Chabrol]
> 
>> Am 03.04.19 um 09:38 schrieb georg.fut...@dlr.de:
>> Hello Dumux,
>> 
>>  

_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
_______________________________________________
Dumux mailing list
Dumux@listserv.uni-stuttgart.de
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to