I didn't use precompiled headers intentionally.Rein Halbersma wrote:This is sometimes called "unity builds", and with e.g. CMake it can be supported automatically so that you can still develop using separate files.lucasart wrote:
There are other solutions than PCH:
* single source file including the other source files: ugly, but radical and effective. I think that's what Crafty does.
There are also ccache (similar to precompiled headers, will cache compiler state) and distcc (increased parallelism) which are reported to reduce build times. YMMV.
BTW, you are absolutely right that with C, compile times are not an issue (for any projects smaller than the Linux kernel), so that makes Matthew's bug rather silly: he shouldn't have used precompiled headers in the first place, and if he did, he should use a proper make system to track changed dependencies.
I think it could have gotten caught in a "GCC compile everything" command, which would explain it. I've removed all of them now.
Matthew:out