src/Pure/Tools/generated_files.ML
changeset 81842 5900b58d6bd4
parent 80287 a3a1ec0c47ab
child 81843 4329a8fecbe1
equal deleted inserted replaced
81841:c84c0c0e6907 81842:5900b58d6bd4
   341             ML_Lex.read_source source @ ML_Lex.read ")");
   341             ML_Lex.read_source source @ ML_Lex.read ")");
   342       val _ =
   342       val _ =
   343         export |> List.app (fn (bindings, executable) =>
   343         export |> List.app (fn (bindings, executable) =>
   344           bindings |> List.app (fn binding0 =>
   344           bindings |> List.app (fn binding0 =>
   345             let
   345             let
   346               val binding = binding0 |> Path.map_binding (executable = SOME true ? Path.exe);
   346               val binding = binding0
       
   347                 |> Path.map_binding (executable = SOME true ? Path.platform_exe);
   347               val (path, pos) = Path.dest_binding binding;
   348               val (path, pos) = Path.dest_binding binding;
   348               val content =
   349               val content =
   349                 (case try Bytes.read (dir + path) of
   350                 (case try Bytes.read (dir + path) of
   350                   SOME bytes => Bytes.contents_blob bytes
   351                   SOME bytes => Bytes.contents_blob bytes
   351                 | NONE => error ("Missing result file " ^ Path.print path ^ Position.here pos));
   352                 | NONE => error ("Missing result file " ^ Path.print path ^ Position.here pos));