File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -153,10 +153,15 @@ hyphens `-` are replaced with underscores `_`(see
153153By default this crate builds and links against a vendored version of ` jemalloc ` . To
154154provide your own ` jemalloc ` version, set ` JEMALLOC_OVERRIDE ` to point to a built
155155version of ` jemalloc ` . This can point to either a shared or static library. For
156- instance: ` JEMALLOC_OVERRIDE=/path/to/libjemalloc.a ` . The library should be built
157- with ` jemalloc ` 's ` --with-jemalloc-prefix=_rjem_ ` . For static libraries it is also
158- recommended to build with ` --with-private-namespace=_rjem_ ` . For more information
159- see [ ` jemalloc/INSTALL.md ` ] [ jemalloc_install ] .
156+ instance: ` JEMALLOC_OVERRIDE=/path/to/libjemalloc.a ` .
157+
158+ ` JEMALLOC_OVERRIDE ` is for advanced usage only. Providing your own library means
159+ most features of jemalloc-sys will be ignored in build script, and you are
160+ responsible for compiling the library to match what ` jemalloc-sys ` expects.
161+ Especially, handle API prefix as whatever feature
162+ ` unprefixed_malloc_on_supported_platforms ` says.
163+
164+ For more information see [ ` jemalloc/INSTALL.md ` ] [ jemalloc_install ] .
160165
161166[ jemalloc_install ] : https://github.com/jemalloc/jemalloc/blob/dev/INSTALL.md#advanced-configuration
162167
You can’t perform that action at this time.
0 commit comments