tuned -- no dependency on exit function;
authorwenzelm
Sat, 21 Jul 2012 12:57:31 +0200
changeset 48417 bb1d4ec90f30
parent 48416 5787e1c911d0
child 48418 1a634f9614fb
tuned -- no dependency on exit function;
src/Pure/build
--- a/src/Pure/build	Sat Jul 21 12:42:28 2012 +0200
+++ b/src/Pure/build	Sat Jul 21 12:57:31 2012 +0200
@@ -81,11 +81,11 @@
 if [ "$TARGET" = RAW ]; then
   if [ "$BUILD_IMAGES" = false ]; then
     "$ISABELLE_PROCESS" \
-      -e "use\"$COMPAT\" handle _ => exit 1;" \
+      -e "use\"$COMPAT\" handle _ => OS.Process.exit OS.Process.failure;" \
       -q RAW_ML_SYSTEM
   else
     "$ISABELLE_PROCESS" \
-      -e "use\"$COMPAT\" handle _ => exit 1;" \
+      -e "use\"$COMPAT\" handle _ => OS.Process.exit OS.Process.failure;" \
       -e "structure Isar = struct fun main () = () end;" \
       -e "ml_prompts \"ML> \" \"ML# \";" \
       -q -w RAW_ML_SYSTEM RAW
@@ -93,11 +93,11 @@
 else
   if [ "$BUILD_IMAGES" = false ]; then
     "$ISABELLE_PROCESS" \
-      -e "(use\"$COMPAT\"; use\"ROOT.ML\") handle _ => exit 1;" \
+      -e "(use\"$COMPAT\"; use\"ROOT.ML\") handle _ => OS.Process.exit OS.Process.failure;" \
       -q RAW_ML_SYSTEM
   else
     "$ISABELLE_PROCESS" \
-      -e "(use\"$COMPAT\"; use\"ROOT.ML\") handle _ => exit 1;" \
+      -e "(use\"$COMPAT\"; use\"ROOT.ML\") handle _ => OS.Process.exit OS.Process.failure;" \
       -e "ml_prompts \"ML> \" \"ML# \";" \
       -f -q -w RAW_ML_SYSTEM Pure
   fi