mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-18 10:56:20 +03:00
Allow overriding LG_PAGE
This is useful for our internal builds where we override the configuration in the header files generated by autoconf.
This commit is contained in:
parent
3e2ba7a651
commit
4e6f1e9208
2 changed files with 18 additions and 0 deletions
|
|
@ -452,4 +452,6 @@
|
|||
*/
|
||||
#undef JEMALLOC_HAVE_RDTSCP
|
||||
|
||||
#include "jemalloc_internal_overrides.h"
|
||||
|
||||
#endif /* JEMALLOC_INTERNAL_DEFS_H_ */
|
||||
|
|
|
|||
16
include/jemalloc/internal/jemalloc_internal_overrides.h
Normal file
16
include/jemalloc/internal/jemalloc_internal_overrides.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef JEMALLOC_INTERNAL_OVERRIDES_H
|
||||
#define JEMALLOC_INTERNAL_OVERRIDES_H
|
||||
|
||||
/*
|
||||
* Under normal circumstances this header serves no purpose, as these settings
|
||||
* can be customized via the corresponding autoconf options at configure-time.
|
||||
* Overriding in this fashion is useful when the header files generated by
|
||||
* autoconf are used as input for another build system.
|
||||
*/
|
||||
|
||||
#ifdef JEMALLOC_OVERRIDE_LG_PAGE
|
||||
#undef LG_PAGE
|
||||
#define LG_PAGE JEMALLOC_OVERRIDE_LG_PAGE
|
||||
#endif
|
||||
|
||||
#endif /* JEMALLOC_INTERNAL_OVERRIDES_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue