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 webmaster@scons.org. Also, new account creation is currently disabled due to an ongoing spam flood (2013/08/27).

I have no idea how to do this, so here is a page ready for the experts to fill in the details.

Lets say I need to make a custom version of ld, or gcc, and want it to be done as part of a source build:

tree example:

         project/
         project/compiler/
         project/application

An executable in project/compiler needs to be created before anything in project/application is compiled. In addition, this executable needs to be used for Builders in project/application.

Can scons do this ? [Yes.]

The first step is to have scons compile the ld, or compiler. Then you would create a new Environment and configure it to use your compiler or linker, export this new Environment for use to compile the rest of the project.

See for more information: UsingCodeGenerators

UsingCompilerBuilt (last edited 2008-03-12 02:46:58 by localhost)