File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ pub enum DepNode<D: Clone + Debug> {
81
81
TransCrateItem ( D ) ,
82
82
TransInlinedItem ( D ) ,
83
83
TransWriteMetadata ,
84
+ LinkBinary ,
84
85
85
86
// Nodes representing bits of computed IR in the tcx. Each shared
86
87
// table in the tcx (or elsewhere) maps to one of these
@@ -178,6 +179,7 @@ impl<D: Clone + Debug> DepNode<D> {
178
179
LateLintCheck => Some ( LateLintCheck ) ,
179
180
TransCrate => Some ( TransCrate ) ,
180
181
TransWriteMetadata => Some ( TransWriteMetadata ) ,
182
+ LinkBinary => Some ( LinkBinary ) ,
181
183
Hir ( ref d) => op ( d) . map ( Hir ) ,
182
184
MetaData ( ref d) => op ( d) . map ( MetaData ) ,
183
185
CollectItem ( ref d) => op ( d) . map ( CollectItem ) ,
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ use middle::dependency_format::Linkage;
25
25
use CrateTranslation ;
26
26
use util:: common:: time;
27
27
use util:: fs:: fix_windows_verbatim_for_gcc;
28
+ use rustc:: dep_graph:: DepNode ;
28
29
use rustc:: ty:: TyCtxt ;
29
30
use rustc_back:: tempdir:: TempDir ;
30
31
@@ -183,6 +184,8 @@ pub fn link_binary(sess: &Session,
183
184
trans : & CrateTranslation ,
184
185
outputs : & OutputFilenames ,
185
186
crate_name : & str ) -> Vec < PathBuf > {
187
+ let _task = sess. dep_graph . in_task ( DepNode :: LinkBinary ) ;
188
+
186
189
let mut out_filenames = Vec :: new ( ) ;
187
190
for & crate_type in sess. crate_types . borrow ( ) . iter ( ) {
188
191
if invalid_output_for_target ( sess, crate_type) {
You can’t perform that action at this time.
0 commit comments