lib/Tools/ocamlc
author wenzelm
Thu, 08 Nov 2018 14:56:53 +0100
changeset 69264 021ea2abf42d
parent 69261 a41f49148525
permissions -rwxr-xr-x
simplified -- according to regular "ghci" script;

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

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