[Scons-dev] compiler (tools) search order in SConstruct
Ludmil T Zikatanov
ltzmultigrid at gmail.com
Mon Sep 24 09:12:06 EDT 2012
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).
Thank you for your consideration.
regards,
--Ludmil
More information about the Scons-dev
mailing list