src/Pure/Tools/build.scala
changeset 66744 fec1504e5f03
parent 66737 2edc0c42c883
child 66745 e7ac579b883c
--- a/src/Pure/Tools/build.scala	Sun Oct 01 17:59:26 2017 +0200
+++ b/src/Pure/Tools/build.scala	Sun Oct 01 20:50:26 2017 +0200
@@ -24,6 +24,7 @@
   /* persistent build info */
 
   sealed case class Session_Info(
+    imported_sources: List[String],
     sources: List[String],
     input_heaps: List[String],
     output_heap: Option[String],
@@ -380,6 +381,9 @@
         verbose = verbose, list_files = list_files, check_keywords = check_keywords,
         global_theories = full_sessions.global_theories).check_errors
 
+    def imported_sources_stamp(name: String): List[String] =
+      deps.imported_sources(name).map(_.toString).sorted
+
     def sources_stamp(name: String): List[String] =
       (selected_sessions(name).meta_digest :: deps.sources(name)).map(_.toString).sorted
 
@@ -501,7 +505,12 @@
                       parse_session_info(
                         command_timings = true, ml_statistics = true, task_statistics = true),
                   build =
-                    Session_Info(sources_stamp(name), input_heaps, heap_stamp, process_result.rc)))
+                    Session_Info(
+                      imported_sources_stamp(name),
+                      sources_stamp(name),
+                      input_heaps,
+                      heap_stamp,
+                      process_result.rc)))
             }
 
             // messages