Mentions légales du service

Skip to content
Snippets Groups Projects
  1. Nov 03, 2020
  2. Oct 30, 2020
  3. Oct 28, 2020
  4. Oct 26, 2020
  5. Oct 22, 2020
    • Théotime Grohens's avatar
      Merge branch 'print-commit' into 'aevol_7' · 631976e0
      Théotime Grohens authored
      [aevol] Print compile commit branch, hash and date
      
      See merge request aevol/aevol!30
      631976e0
    • Théotime Grohens's avatar
      [aevol] Print compile commit branch, hash and date · ee8f2200
      Théotime Grohens authored
      This commit adds the ability to get the branch, date and hash of the
      commit that was used to compile Aevol from within the C++ source of Aevol.
      
      This is useful because it allows us to print it (for example) at the
      beginning of the execution of one of the Aevol programs, making it
      easier to see whether we're running the right version.
      
      In order to do this, a special file `aevol_version.cpp.in` is introduced.
      This file is modified by CMake a first time at configure time, replacing
      a placeholder with the value of the PROJECT_VERSION CMake variable, and
      a second time at compile time, replacing a placeholder with a custom
      CMake variable that holds the branch, hash and date.
      
      This turns the file into a regular C++ source file, that is then compiled
      and linked with the rest of Aevol through the `aevol_version.h` header.
      
      Finally, we print this string in the two most commonly used Aevol
      executables, `aevol_create` and `aevol_run`.
      ee8f2200
  6. Oct 21, 2020
  7. Oct 14, 2020
  8. Oct 13, 2020
Loading