lib/Tools/ocaml
author wenzelm
Thu, 08 Nov 2018 15:52:10 +0100
changeset 69267 517655a528fe
parent 69261 a41f49148525
permissions -rwxr-xr-x
always insist in specified resolver/compiler version;

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: invoke OCaml within the Isabelle environment

if [ -d "$ISABELLE_OPAM_ROOT" -a -n "$ISABELLE_OCAML" ]
then
  isabelle_opam config exec --switch "$ISABELLE_OCAML_VERSION" -- ocaml "$@"
else
  echo "Cannot execute ocaml: missing Isabelle OCaml setup" >&2
  exit 127
fi