proper bootstrap base for building Pure;
authorwenzelm
Wed, 12 Apr 2017 23:44:33 +0200
changeset 65475 4519c8cc4bec
parent 65474 5624e9694915
child 65476 a72ae9eb4462
proper bootstrap base for building Pure;
src/Pure/Thy/sessions.scala
--- a/src/Pure/Thy/sessions.scala	Wed Apr 12 23:35:42 2017 +0200
+++ b/src/Pure/Thy/sessions.scala	Wed Apr 12 23:44:33 2017 +0200
@@ -33,8 +33,11 @@
   {
     def pure(options: Options): Base = session_base(options, Thy_Header.PURE)
 
-    lazy val bootstrap: Base =
-      Base(keywords = Thy_Header.bootstrap_header, syntax = Thy_Header.bootstrap_syntax)
+    def bootstrap(global_theories: Map[String, String]): Base =
+      Base(
+        global_theories = global_theories,
+        keywords = Thy_Header.bootstrap_header,
+        syntax = Thy_Header.bootstrap_syntax)
 
     private[Sessions] def known_theories(
         local_dir: Path,
@@ -137,7 +140,7 @@
           try {
             val parent_base =
               info.parent match {
-                case None => Base.bootstrap
+                case None => Base.bootstrap(global_theories)
                 case Some(parent) => session_bases(parent)
               }
             val resources = new Resources(parent_base,