Thank's for the link, unfortunately that doesn't describe how/if that will use PCH with gcc..
I don't see how the compiler used is defined (kike inside a Makefle with cc = ...).
So did that mean, that it will only work if the used copier supports "generating separate PCH files". So, not working with gcc ?
What is _PreComp_???
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: What is _PreComp_???
One has to check the CMake source code to see how it's done. But I am pretty sure it doesn't use the #pragma hdrstop but the -x compiler switch:unfortunately that doesn't describe how/if that will use PCH with gcc
https://gcc.gnu.org/onlinedocs/gcc/Prec ... ed-Headers
Re: What is _PreComp_???
Ah, Yes, that makes sense...
And it seams that this way is a better/moderner way of using PCH.
It didn't need any modification of the source to use PCH, just some settings in the (C-)Makefile.
Maybe I missed this, because I mostly wrote "bare metal" software for microprocessors using a cross compiler mostly based on gcc and these compilers doesn't support that kind of PCH.
Thanks for the explanation.
And it seams that this way is a better/moderner way of using PCH.
It didn't need any modification of the source to use PCH, just some settings in the (C-)Makefile.
Maybe I missed this, because I mostly wrote "bare metal" software for microprocessors using a cross compiler mostly based on gcc and these compilers doesn't support that kind of PCH.
Thanks for the explanation.