src/Tools/Code/code_target.ML
changeset 62549 9498623b27f0
parent 59936 b8ffc3dc9e24
child 62550 f1baa15a6a0c
equal deleted inserted replaced
62548:f8ebb715e06d 62549:9498623b27f0
   383         val destination = make_destination p;
   383         val destination = make_destination p;
   384         val _ = export (SOME destination) (invoke_serializer ctxt target_name (SOME 80)
   384         val _ = export (SOME destination) (invoke_serializer ctxt target_name (SOME 80)
   385           generatedN args program all_public syms);
   385           generatedN args program all_public syms);
   386         val cmd = make_command generatedN;
   386         val cmd = make_command generatedN;
   387       in
   387       in
   388         if Isabelle_System.bash ("cd " ^ File.shell_path p ^ " && " ^ cmd ^ " 2>&1") <> 0
   388         if Isabelle_System.bash ("cd " ^ File.bash_path p ^ " && " ^ cmd ^ " 2>&1") <> 0
   389         then error ("Code check failed for " ^ target_name ^ ": " ^ cmd)
   389         then error ("Code check failed for " ^ target_name ^ ": " ^ cmd)
   390         else ()
   390         else ()
   391       end;
   391       end;
   392   in
   392   in
   393     if getenv env_var = ""
   393     if getenv env_var = ""