Add release versioning support.

Base version string on 'git describe --long', and provide cpp
macros in jemalloc.h.

Add the version mallctl.
This commit is contained in:
Jason Evans
2010-03-02 13:01:16 -08:00
parent 22ca855e8f
commit a40bc7afe8
7 changed files with 33 additions and 2 deletions

View File

@@ -4,6 +4,13 @@
extern "C" {
#endif
#define JEMALLOC_VERSION "@jemalloc_version@"
#define JEMALLOC_VERSION_MAJOR @jemalloc_version_major@
#define JEMALLOC_VERSION_MINOR @jemalloc_version_minor@
#define JEMALLOC_VERSION_BUGFIX @jemalloc_version_bugfix@
#define JEMALLOC_VERSION_NREV @jemalloc_version_nrev@
#define JEMALLOC_VERSION_GID "@jemalloc_version_gid@"
#include "jemalloc_defs@install_suffix@.h"
#ifndef JEMALLOC_P
# define JEMALLOC_P(s) s