Please note:The SCons wiki is now restored from the attack in March 2013. All old passwords have been invalidated. Please reset your password if you have an account. If you note missing pages, please report them to Also, new account creation is currently disabled due to an ongoing spam flood (2013/08/27).

Gch Builder

The Gch Builder provides a similar interface for precompiled headers on gcc like the PCH builder for msvc. Dependencies of shared objects and static objects are autogenerated.


Explanation and additional usage instructions

This way we check if an object file depends on the original header from which precompiled header was generated. To use modified tool with build dirs you modify the build environment in SConscript like this:

   1 env.Prepend(CPPPATH=['.'])

which will ensure that the compiler looks for (precompiled) header in a build dir before the source dir. I'm not sure if this can be automated somehow.

Code in github


See comments on top of the file

GchBuilder (last edited 2012-09-07 09:50:17 by PedroLarroy)