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:
Steven Fackler 2018-06-23 15:40:36 -04:00 committed by gnzlbg
parent 9a1a1a7353
commit 5d174417f1
1 changed files with 1 additions and 0 deletions

View File

@ -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");
}