mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
8a1a9b9558
Jemalloc will be used if the cmake option `USE_JEMALLOC` is enabled(which is the default). To avoid trouble with clang's ASAN, it is disabled by default if the `SANITIZE` option is enabled. Since jemalloc has thread cache for small objects, it fills the gap created by removing klib memory pools. The `xstrdup` funciton(memory.c) had to be reimplemented on top of `xmalloc` to make it work with a custom allocator.
71 lines
1.6 KiB
C
71 lines
1.6 KiB
C
#ifndef AUTO_CONFIG_H
|
|
#define AUTO_CONFIG_H
|
|
|
|
#cmakedefine DEBUG
|
|
|
|
#define SIZEOF_INT @SIZEOF_INT@
|
|
#define SIZEOF_LONG @SIZEOF_LONG@
|
|
#define SIZEOF_OFF_T @SIZEOF_OFF_T@
|
|
|
|
#if @SIZEOF_VOID_PTR@ == 8
|
|
#define ARCH_64
|
|
#elif @SIZEOF_VOID_PTR@ == 4
|
|
#define ARCH_32
|
|
#endif
|
|
|
|
#cmakedefine HAVE__NSGETENVIRON
|
|
#cmakedefine HAVE_CRT_EXTERNS_H
|
|
#cmakedefine HAVE_FCNTL_H
|
|
#cmakedefine HAVE_FD_CLOEXEC
|
|
#cmakedefine HAVE_FSEEKO
|
|
#cmakedefine HAVE_FSYNC
|
|
#cmakedefine HAVE_GETPWENT
|
|
#cmakedefine HAVE_GETPWNAM
|
|
#cmakedefine HAVE_GETPWUID
|
|
#cmakedefine HAVE_ICONV
|
|
#cmakedefine HAVE_ICONV_H
|
|
#cmakedefine HAVE_LANGINFO_H
|
|
#cmakedefine HAVE_LIBGEN_H
|
|
#cmakedefine HAVE_LOCALE_H
|
|
#cmakedefine HAVE_LSTAT
|
|
#cmakedefine HAVE_NL_LANGINFO_CODESET
|
|
#cmakedefine HAVE_NL_MSG_CAT_CNTR
|
|
#define HAVE_OSPEED 1
|
|
#cmakedefine HAVE_PUTENV
|
|
#cmakedefine HAVE_PWD_H
|
|
#cmakedefine HAVE_READLINK
|
|
// TODO: add proper cmake check
|
|
// #define HAVE_SELINUX 1
|
|
#cmakedefine HAVE_SETENV
|
|
#cmakedefine HAVE_SETPGID
|
|
#cmakedefine HAVE_SETSID
|
|
#cmakedefine HAVE_SIGACTION
|
|
#cmakedefine HAVE_SIGVEC
|
|
#cmakedefine HAVE_STRCASECMP
|
|
#cmakedefine HAVE_STRINGS_H
|
|
#cmakedefine HAVE_STRNCASECMP
|
|
#cmakedefine HAVE_STROPTS_H
|
|
#cmakedefine HAVE_SYS_PARAM_H
|
|
#cmakedefine HAVE_SYS_TIME_H
|
|
#cmakedefine HAVE_SYS_UTSNAME_H
|
|
#cmakedefine HAVE_SYS_WAIT_H
|
|
#cmakedefine HAVE_UNISTD_H
|
|
#define HAVE_UP_BC_PC 1
|
|
#cmakedefine HAVE_UTIME
|
|
#cmakedefine HAVE_UTIME_H
|
|
#cmakedefine HAVE_UTIMES
|
|
#cmakedefine HAVE_WORKING_LIBINTL
|
|
#define RETSIGTYPE void
|
|
#define SIGRETURN return
|
|
#define TIME_WITH_SYS_TIME 1
|
|
#cmakedefine UNIX
|
|
#cmakedefine USE_FNAME_CASE
|
|
#define USEMAN_S 1
|
|
|
|
#define FEAT_BROWSE
|
|
#define FEAT_CSCOPE
|
|
#define FEAT_MOUSE
|
|
#cmakedefine USE_JEMALLOC
|
|
|
|
#endif // AUTO_CONFIG_H
|