lib/scripts/ocaml
author wenzelm
Thu, 08 Nov 2018 16:18:12 +0100
changeset 69268 c1a27fce2076
parent 69261 lib/Tools/ocaml@a41f49148525
permissions -rwxr-xr-x
clarified tool setup for GHC / OCaml: discontinued "isabelle ghc", "isabelle ocaml", "isabelle ocamlc" to avoid confusion with traditional settings variables for executables (these are still required in existing applications, notably in session options [condition = ISABELLE_GHC] etc. and codegen setup;

#!/usr/bin/env bash
#
# Author: Makarius
#
# Invoke ocaml via "opam".

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