On Mon, Sep 24, 2012 at 9:12 AM, Ludmil T Zikatanov <[email protected]> wrote: > Hello: > > I like scons model for software development, it is simple and quite powerful. > However, I stumbled when I tried to write an SConstruct file that searches > for "C" and "Fortran" compilers in an order prescribed by me. For example: > assume that I have "icc", "gcc" and "gcc-mp-4.6" on a mac (all paths to the > executables are in the scons path, so no problem finding each of these 3 > tools). > > Then I'd like to have scons to search for tools in the following order: check > for "icc", if not found, then check for "gcc-mp-4.6" and if not found then > fall back to "gcc" (or just go through the rest of the compilers that are > default in the "tool specifications" as indicated on the scons man page). > > Similar applies to Fortran compilers (or any other tools). I think it will be > good to either include example in the man pages accomplishing the above > "ordered search task" (if such example can be provided) or include this in > future versions of scons (if it appeals to you).
Hi Ludmil; this kind of thing is not easy to do with SCons today, but we are thinking about how to make tool chain specifications more flexible in a future version. -- Gary _______________________________________________ Scons-dev mailing list [email protected] http://two.pairlist.net/mailman/listinfo/scons-dev
