Skip to content

Commit

Permalink
version: add build type info
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Guyomarc'h committed Aug 1, 2020
1 parent e66a15b commit acd070a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmake/Modules/version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#define EOVIM_VERSION_MIC @PROJECT_VERSION_PATCH@
#define EOVIM_VERSION_EXT @PROJECT_VERSION_TWEAK@
#cmakedefine EOVIM_GIT_HASH "@EOVIM_GIT_HASH@"
#define EOVIM_BUILD_TYPE "@CMAKE_BUILD_TYPE@"

#ifdef EOVIM_GIT_HASH
# define EOVIM_VERSION "@PROJECT_VERSION@-@EOVIM_GIT_HASH@"
Expand Down
3 changes: 2 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ EAPI_MAIN int elm_main(int argc, char **argv)
}
if (version) {
printf("\n"
"Build Type: %s\n\n"
#ifdef EFL_VERSION_MICRO
"Compiled with EFL %i.%i.%i\n"
#else /* Yes, I know...... */
Expand All @@ -148,7 +149,7 @@ EAPI_MAIN int elm_main(int argc, char **argv)
"Compiled with msgpack %s\n"
"Linked with EFL %i.%i.%i\n"
"Linked with msgpack %s\n",
EFL_VERSION_MAJOR, EFL_VERSION_MINOR,
EOVIM_BUILD_TYPE, EFL_VERSION_MAJOR, EFL_VERSION_MINOR,
#ifdef EFL_VERSION_MICRO
EFL_VERSION_MICRO,
#endif
Expand Down

0 comments on commit acd070a

Please sign in to comment.