After madmaxoft enabled precompiled headers in the Windows builds, compile time was reduced a lot. I'm trying to do the same for *nix users by enabling precompiled headers.
However, it seems using precompiled headers actually slows down compile time O.o
How I understood the precompiled headers with GCC is that you compile a .h file the same way you compile a .cpp file and it will create a .h.gch file, place that file in the same folder as the .h file and GCC will use the .h.gch file instead of the .h file.
I checked it if works with the -H GCC parameter, and it works, but it seems to take longer to compile the project even if it's slightly slower. There's definitely no improvement though.
Am I doing something wrong?
However, it seems using precompiled headers actually slows down compile time O.o
How I understood the precompiled headers with GCC is that you compile a .h file the same way you compile a .cpp file and it will create a .h.gch file, place that file in the same folder as the .h file and GCC will use the .h.gch file instead of the .h file.
I checked it if works with the -H GCC parameter, and it works, but it seems to take longer to compile the project even if it's slightly slower. There's definitely no improvement though.
Am I doing something wrong?


Right now a worse problem with *nix is that a change in the header doesn't force "make" to recompile all cpps that are affected; also i'd like to have three builds - debug, release and profiling. He said he might manage all this, but it'll take some time.

I could see it was including less header files by using -H. -H prints all headers that are included, and it was (a lot) less when I used the precompiled header, but slower nonetheless.