Menu

#79 Get ATLAS version

Would_be_nice
open
nobody
5
2013-05-20
2012-08-05
jgpallero
No

Hello:

It would be nice if the ATLAS version number could be determined in numerical form from the preprocessor. Until now, the constant ATLAS_VERSION is defined in atlas_buildinfo.h but is in text string format and it makes impossible to compare two versions from the preprocessor (in order to support at compilation time the use of dgels from ATLAS or not, for example). I suggest the creation of the constants ATLAS_VERSION_MAJOR, ATLAS_VERSION_MINOR and ATLAS_VERSION_PATCH that should store the version parts in numeric integer form.

Cheers

Discussion

  • jgpallero

    jgpallero - 2012-08-06

    Another posibility is to add a new constant representing the release date in format YYYYMMDD. For example ATL_RELEASE_DATE. This is better for comparing.

     
  • jgpallero

    jgpallero - 2012-12-20
     
  • jgpallero

    jgpallero - 2012-12-20

    Attached is a patch that adds the ATL_RELDATE to the file emit_buildinfo.c in order to add the ATL_RELDATE constant (in format YYYYMMDD) to the atlas_buildinfo.h file. As ATL_VERS, ATL_RELDATE should be manually changed when a new version is released

     
  • jgpallero

    jgpallero - 2013-05-20

    As in the last developer version this feature is included, I suggest this feature be marked as done

     

Log in to post a comment.

MongoDB Logo MongoDB