[Developers] Patch: store the version of C/C++/Fortran compilers

Tom Goodale goodale at cct.lsu.edu
Thu Jun 16 03:58:08 CDT 2005



On Wed, 15 Jun 2005, Erik Schnetter wrote:

> On Wednesday 15 June 2005 06:18, Tom Goodale wrote:
>> Hi,
>>
>> while this may be useful, it could be misleading, as if the version
>> of the compiler changes on disk after the configuration is created,
>> these version numbers would be wrong.
>>
>> One possibly better solution would be to put commands which could
>> determine the version of the compilers into the make.config.defn
>> file, and then we could run them at compile time and store the info
>> somewhere.
>
> This could also be misleading, because different files could be compiled
> with different compiler versions.
>
> If you want to trace how configure made its decisions, then you need the
> versions as seen by configure.

If that's the reason for storing the enfo, then fair enough, in which case 
it needs to go in a log file, or a comment, but not in a make variable, 
and be clearly marked as 'These settings are based upon detecting compiler 
x, version y at configuration time.'

Tom



More information about the Developers mailing list