File tree 2 files changed +9
-5
lines changed
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -77,3 +77,7 @@ test = false # no unit tests
77
77
name = " rustup-init"
78
78
path = " src/rustup-cli/main.rs"
79
79
test = false # no unit tests
80
+
81
+ [profile .release ]
82
+ lto = true
83
+ codegen-units = 1
Original file line number Diff line number Diff line change 14
14
15
15
#![ recursion_limit = "1024" ]
16
16
17
- use std:: alloc:: System ;
18
-
19
- #[ global_allocator]
20
- static A : System = System ;
21
-
22
17
#[ macro_use]
23
18
extern crate error_chain;
24
19
extern crate rustup_dist;
@@ -60,12 +55,17 @@ mod term2;
60
55
mod errors;
61
56
mod help;
62
57
58
+ use std:: alloc:: System ;
63
59
use std:: env;
64
60
use std:: path:: PathBuf ;
65
61
use errors:: * ;
66
62
use rustup_dist:: dist:: TargetTriple ;
67
63
use rustup:: env_var:: RUST_RECURSION_COUNT_MAX ;
68
64
65
+ // Always use the system allocator, to reduce binary size.
66
+ #[ global_allocator]
67
+ static _ALLOCATOR: System = System ;
68
+
69
69
fn main ( ) {
70
70
if let Err ( ref e) = run_rustup ( ) {
71
71
common:: report_error ( e) ;
You can’t perform that action at this time.
0 commit comments