1
Fork 0

rustbuild: make backtraces (RUST_BACKTRACE) optional

but keep them enabled by default to maintain the status quo.

When disabled shaves ~56KB off every x86_64-unknown-linux-gnu
binary.

To disable backtraces you have to use a config.toml (see
src/bootstrap/config.toml.example for details) when building rustc/std:

$ python bootstrap.py --config=config.toml
This commit is contained in:
Jorge Aparicio 2016-07-26 15:21:25 -05:00
parent 9316ae515e
commit d464422c0a
9 changed files with 29 additions and 5 deletions

View file

@ -30,6 +30,7 @@ use libc;
pub mod weak;
pub mod android;
#[cfg(feature = "backtrace")]
pub mod backtrace;
pub mod condvar;
pub mod ext;