File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 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> {
8181 TransCrateItem ( D ) ,
8282 TransInlinedItem ( D ) ,
8383 TransWriteMetadata ,
84+ LinkBinary ,
8485
8586 // Nodes representing bits of computed IR in the tcx. Each shared
8687 // table in the tcx (or elsewhere) maps to one of these
@@ -178,6 +179,7 @@ impl<D: Clone + Debug> DepNode<D> {
178179 LateLintCheck => Some ( LateLintCheck ) ,
179180 TransCrate => Some ( TransCrate ) ,
180181 TransWriteMetadata => Some ( TransWriteMetadata ) ,
182+ LinkBinary => Some ( LinkBinary ) ,
181183 Hir ( ref d) => op ( d) . map ( Hir ) ,
182184 MetaData ( ref d) => op ( d) . map ( MetaData ) ,
183185 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;
2525use CrateTranslation ;
2626use util:: common:: time;
2727use util:: fs:: fix_windows_verbatim_for_gcc;
28+ use rustc:: dep_graph:: DepNode ;
2829use rustc:: ty:: TyCtxt ;
2930use rustc_back:: tempdir:: TempDir ;
3031
@@ -183,6 +184,8 @@ pub fn link_binary(sess: &Session,
183184 trans : & CrateTranslation ,
184185 outputs : & OutputFilenames ,
185186 crate_name : & str ) -> Vec < PathBuf > {
187+ let _task = sess. dep_graph . in_task ( DepNode :: LinkBinary ) ;
188+
186189 let mut out_filenames = Vec :: new ( ) ;
187190 for & crate_type in sess. crate_types . borrow ( ) . iter ( ) {
188191 if invalid_output_for_target ( sess, crate_type) {
You can’t perform that action at this time.
0 commit comments