src/Pure/System/build.ML
changeset 48804 6348e5fca42e
parent 48734 af91cd2301ba
child 48805 c3ea910b3581
--- a/src/Pure/System/build.ML	Tue Aug 14 13:01:09 2012 +0200
+++ b/src/Pure/System/build.ML	Tue Aug 14 13:40:49 2012 +0200
@@ -65,12 +65,14 @@
               (pair string ((list (pair Options.decode (list string)))))))))
           end;
 
+      val document_variants =
+        map Present.read_variant (space_explode ":" (Options.string options "document_variants"));
       val _ =
         Session.init do_output false
           (Options.bool options "browser_info") browser_info
           (Options.string options "document")
           (Options.bool options "document_graph")
-          (space_explode ":" (Options.string options "document_variants"))
+          document_variants
           parent_name name
           (Options.string options "document_dump",
             Present.dump_mode (Options.string options "document_dump_mode"))