File tree 3 files changed +18
-5
lines changed
compile-benchmarks/cargo-0.60.0
3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/Cargo.toml b/Cargo.toml
2
+ index 12ee1eec..9a92219e 100644
3
+ --- a/Cargo.toml
4
+ +++ b/Cargo.toml
5
+ @@ -205,6 +205,7 @@ version = "0.4.26"
6
+ default-features = false
7
+
8
+ [features]
9
+ + default = [ "vendored-openssl" ]
10
+ deny-warnings = []
11
+ pretty-env-logger = ["pretty_env_logger"]
12
+ vendored-openssl = ["openssl/vendored"]
Original file line number Diff line number Diff line change @@ -32,16 +32,17 @@ fn main() {
32
32
let mut args_os = env:: args_os ( ) ;
33
33
let name = args_os. next ( ) . unwrap ( ) . into_string ( ) . unwrap ( ) ;
34
34
35
- let mut args = args_os. collect :: < Vec < _ > > ( ) ;
36
- let rustc = env:: var_os ( "RUSTC_REAL" ) . unwrap ( ) ;
37
35
let actually_rustdoc = name. ends_with ( "rustdoc-fake" ) ;
38
36
let tool = if actually_rustdoc {
39
37
let rustdoc = env:: var_os ( "RUSTDOC_REAL" ) . unwrap ( ) ;
40
38
rustdoc
41
39
} else {
42
- rustc
40
+ // rustc
41
+ args_os. next ( ) . unwrap ( )
43
42
} ;
44
43
44
+ let mut args = args_os. collect :: < Vec < _ > > ( ) ;
45
+
45
46
if let Some ( count) = env:: var ( "RUSTC_THREAD_COUNT" )
46
47
. ok ( )
47
48
. and_then ( |v| v. parse :: < u32 > ( ) . ok ( ) )
Original file line number Diff line number Diff line change @@ -148,8 +148,8 @@ impl<'a> CargoProcess<'a> {
148
148
cmd
149
149
// Not all cargo invocations (e.g. `cargo clean`) need all of these
150
150
// env vars set, but it doesn't hurt to have them.
151
- . env ( "RUSTC " , & * FAKE_RUSTC )
152
- . env ( "RUSTC_REAL " , & self . compiler . rustc )
151
+ . env ( "RUSTC_WRAPPER " , & * FAKE_RUSTC )
152
+ . env ( "RUSTC " , & self . compiler . rustc )
153
153
// We separately pass -Cincremental to the leaf crate --
154
154
// CARGO_INCREMENTAL is cached separately for both the leaf crate
155
155
// and any in-tree dependencies, and we don't want that; it wastes
You can’t perform that action at this time.
0 commit comments