File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
librustc_codegen_ssa/back Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ pub fn start_async_codegen<B: ExtraBackendMethods>(
453
453
codegen_worker_send,
454
454
coordinator_receive,
455
455
total_cgus,
456
- sess . jobserver . clone ( ) ,
456
+ rustc_jobserver :: client ( ) ,
457
457
Arc :: new ( modules_config) ,
458
458
Arc :: new ( metadata_config) ,
459
459
Arc :: new ( allocator_config) ,
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ lazy_static! {
29
29
} ;
30
30
}
31
31
32
+ pub fn initialize ( ) {
33
+ lazy_static:: initialize ( & GLOBAL_CLIENT )
34
+ }
35
+
32
36
pub fn client ( ) -> Client {
33
37
GLOBAL_CLIENT . clone ( )
34
38
}
Original file line number Diff line number Diff line change @@ -119,10 +119,6 @@ pub struct Session {
119
119
/// Always set to zero and incremented so that we can print fuel expended by a crate.
120
120
pub print_fuel : AtomicU64 ,
121
121
122
- /// Loaded up early on in the initialization of this `Session` to avoid
123
- /// false positives about a job server in our environment.
124
- pub jobserver : Client ,
125
-
126
122
/// Cap lint level specified by a driver specifically.
127
123
pub driver_lint_caps : FxHashMap < lint:: LintId , lint:: Level > ,
128
124
@@ -1036,6 +1032,8 @@ fn build_session_(
1036
1032
sopts. debugging_opts . time_passes ,
1037
1033
) ;
1038
1034
1035
+ rustc_jobserver:: initialize ( ) ;
1036
+
1039
1037
let sess = Session {
1040
1038
target : target_cfg,
1041
1039
host,
@@ -1068,7 +1066,6 @@ fn build_session_(
1068
1066
optimization_fuel,
1069
1067
print_fuel_crate,
1070
1068
print_fuel,
1071
- jobserver : jobserver:: client ( ) ,
1072
1069
driver_lint_caps,
1073
1070
trait_methods_not_found : Lock :: new ( Default :: default ( ) ) ,
1074
1071
confused_type_with_std_module : Lock :: new ( Default :: default ( ) ) ,
You can’t perform that action at this time.
0 commit comments