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?