jemalloc: Force use of prefixed functions.

* Set JEMALLOC_NO_DEMANGLE to be able to use `je_*` functions,
  regardless of how jemalloc was compiled (--with-jemalloc-prefix)
* Show jemalloc information in Neovim's version output.

Resolve #2449.
This commit is contained in:
Florian Walch
2015-04-20 00:49:39 +03:00
parent 5b5d353151
commit 8130eb1191
7 changed files with 36 additions and 32 deletions

View File

@@ -47,21 +47,25 @@ char *version_cflags = "Compilation: " NVIM_VERSION_CFLAGS;
static char *features[] = {
#ifdef HAVE_ACL
"+acl",
#else // ifdef HAVE_ACL
#else
"-acl",
#endif // ifdef HAVE_ACL
#endif
#if (defined(HAVE_ICONV_H) && defined(USE_ICONV)) || defined(DYNAMIC_ICONV)
# ifdef DYNAMIC_ICONV
"+iconv/dyn",
# else // ifdef DYNAMIC_ICONV
# else
"+iconv",
# endif // ifdef DYNAMIC_ICONV
#else // if (defined(HAVE_ICONV_H) && defined(USE_ICONV))
// ||defined(DYNAMIC_ICONV)
# endif
#else
"-iconv",
#endif // if (defined(HAVE_ICONV_H) && defined(USE_ICONV))
// || defined(DYNAMIC_ICONV)
#endif
#ifdef HAVE_JEMALLOC
"+jemalloc",
#else
"-jemalloc",
#endif
NULL
};