diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-10-20 19:15:06 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-11-02 06:52:56 -0700 |
| commit | 016eaf88f5bca6c9253eedec713c6ddcd6da2906 (patch) | |
| tree | bb32f508b08930114bd8f3377e11d2fcb6a7cb70 /src/rustc | |
| parent | 61e89446ef6e115630faa75c985c599d739f7586 (diff) | |
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
Diffstat (limited to 'src/rustc')
| -rw-r--r-- | src/rustc/Cargo.toml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rustc/Cargo.toml b/src/rustc/Cargo.toml index 7a31afed8c3..ec822fddef3 100644 --- a/src/rustc/Cargo.toml +++ b/src/rustc/Cargo.toml @@ -10,3 +10,6 @@ path = "rustc.rs" [dependencies] rustc_target = { path = "../librustc_target" } rustc_driver = { path = "../librustc_driver" } + +[features] +jemalloc = ['rustc_driver/jemalloc-sys'] |
