mirror of
https://github.com/girlbossceo/jemallocator.git
synced 2024-11-25 14:31:43 +00:00
Set a custom prefix for jemalloc internal symbols
They otherwise conflict with the same symbols pulled in via the jemalloc rustc provides if a custom global allocator isn't set. Closes #51
This commit is contained in:
parent
9a1a1a7353
commit
5d174417f1
|
@ -186,6 +186,7 @@ fn main() {
|
|||
|
||||
if use_prefix {
|
||||
cmd.arg("--with-jemalloc-prefix=_rjem_");
|
||||
cmd.arg("--with-private-namespace=_rjem_");
|
||||
println!("cargo:rustc-cfg=prefixed");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue