diff options
Diffstat (limited to 'src/rustc/rustc.rs')
| -rw-r--r-- | src/rustc/rustc.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rustc/rustc.rs b/src/rustc/rustc.rs index ab5a7c3f747..1c1c7b4bb8e 100644 --- a/src/rustc/rustc.rs +++ b/src/rustc/rustc.rs @@ -23,6 +23,14 @@ extern {} extern crate rustc_driver; +// Note that the linkage here should be all that we need, on Linux we're not +// prefixing the symbols here so this should naturally override our default +// allocator. On OSX it should override via the zone allocator. We shouldn't +// enable this by default on other platforms, so other platforms aren't handled +// here yet. +#[cfg(feature = "jemalloc-sys")] +extern crate jemalloc_sys; + fn main() { rustc_driver::set_sigpipe_handler(); rustc_driver::main() |
