mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-02 00:20:31 +03:00
feat: add private_namespace and malloc_conf flags
Optional flags from the autoconf configuration are added as Bazel flags.
This commit is contained in:
parent
8b561971c4
commit
76176f6760
3 changed files with 33 additions and 46 deletions
|
|
@ -153,6 +153,22 @@ config_setting(
|
|||
flag_values = {":lg_quantum": "-1"},
|
||||
)
|
||||
|
||||
# MALLOC_CONF Specify default malloc_conf (--with-malloc-conf)
|
||||
string_flag(
|
||||
name = "malloc_conf",
|
||||
build_setting_default = "",
|
||||
make_variable = "MALLOC_CONF",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
# PRIVATE_NAMESPACE Prefix to prepend to all library-private APIs (--with-private-namespace)
|
||||
string_flag(
|
||||
name = "private_namespace",
|
||||
build_setting_default = "",
|
||||
make_variable = "PRIVATE_NAMESPACE",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
# JEMALLOC_EXPORT via --without-export which disables the export of the jemalloc API
|
||||
bool_flag(
|
||||
name = "without_export",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue