restored SML code check which got unintentionally broken: must explicitly check for error during compilation;
authorhaftmann
Wed, 07 Nov 2012 20:48:04 +0100
changeset 50022 286dfcab9833
parent 50021 d96a3f468203
child 50023 28f3263d4d1b
restored SML code check which got unintentionally broken: must explicitly check for error during compilation; restore more conventional namespace during check (relevant for Imperative-HOL)
src/Tools/Code/code_ml.ML
--- a/src/Tools/Code/code_ml.ML	Tue Nov 06 19:18:35 2012 +0100
+++ b/src/Tools/Code/code_ml.ML	Wed Nov 07 20:48:04 2012 +0100
@@ -832,7 +832,8 @@
     (target_SML, { serializer = serializer_sml, literals = literals_sml,
       check = { env_var = "ISABELLE_PROCESS",
         make_destination = fn p => Path.append p (Path.explode "ROOT.ML"),
-        make_command = fn _ => "\"$ISABELLE_PROCESS\" -r -q -u Pure" } })
+        make_command = fn _ =>
+          "\"$ISABELLE_PROCESS\" -r -q -e 'datatype ref = datatype Unsynchronized.ref; use \"ROOT.ML\" handle _ => Posix.Process.exit 0w1' Pure" } })
   #> Code_Target.add_target
     (target_OCaml, { serializer = serializer_ocaml, literals = literals_ocaml,
       check = { env_var = "ISABELLE_OCAML",