]> git.lizzy.rs Git - rust.git/commit
Use `jemalloc-sys` on Linux and OSX compilers
authorAlex Crichton <alex@alexcrichton.com>
Sun, 21 Oct 2018 02:15:06 +0000 (19:15 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 2 Nov 2018 13:52:56 +0000 (06:52 -0700)
commit016eaf88f5bca6c9253eedec713c6ddcd6da2906
treebb32f508b08930114bd8f3377e11d2fcb6a7cb70
parent61e89446ef6e115630faa75c985c599d739f7586
Use `jemalloc-sys` on Linux and OSX compilers

This commit adds opt-in support to the compiler to link to `jemalloc` in
the compiler. When activated the compiler will depend on `jemalloc-sys`,
instruct jemalloc to unprefix its symbols, and then link to it. The
feature is activated by default on Linux/OSX compilers for x86_64/i686
platforms, and it's not enabled anywhere else for now. We may be able to
opt-in other platforms in the future! Also note that the opt-in only
happens on CI, it's otherwise unconditionally turned off by default.

Closes #36963
12 files changed:
.travis.yml
config.toml.example
src/Cargo.lock
src/bootstrap/config.rs
src/bootstrap/lib.rs
src/ci/docker/dist-i686-linux/Dockerfile
src/ci/docker/dist-x86_64-linux/Dockerfile
src/librustc_driver/Cargo.toml
src/librustc_driver/lib.rs
src/librustc_target/spec/arm_linux_androideabi.rs
src/rustc/Cargo.toml
src/tools/tidy/src/cargo.rs