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

Thomas Radke tradke at aei.mpg.de
Thu Jun 16 04:42:57 CDT 2005


Tom Goodale wrote:
>> I just thought storing the compiler version close to the compiler 
>> flags would be most convenient.
> 
> 
> True, so how about putting it in as a set of comments above the 
> appropriate compiler flags in the make.code.defn, in a format like 
> above. This would provide the information with no ambiguity as to what 
> it means.

Very good. That's what I get know in a make.config.defn when configuring 
with CC=icc CXX=icpc F90=ifort:

   CFLAGS      = -restrict
   CXXFLAGS    = -restrict
   F90FLAGS    = -align -w95
   F77FLAGS    = -align -w95
   CPPFLAGS    =
   FPPFLAGS    = -traditional

   C_LINE_DIRECTIVES = no
   F_LINE_DIRECTIVES = no

   # Compiler versions
   # CC:  Intel(R) C Compiler for 32-bit applications, Version 8.1 
Build 20050406Z Package ID: <installpackageid>
   # CXX: Intel(R) C++ Compiler for 32-bit applications, Version 8.1 
Build 20050406Z Package ID: <installpackageid>
   # F77:
   # F90: Intel(R) Fortran Compiler for 32-bit applications, Version 8.1 
    Build 20050406Z Package ID: <installpackageid>


I'll put that in now.


-- 
Cheers, Thomas.



More information about the Developers mailing list