lib/Tools/ocamlc
author wenzelm
Thu, 08 Nov 2018 12:32:06 +0100
changeset 69261 a41f49148525
parent 69135 be20f5f6feb9
permissions -rwxr-xr-x
more uniform (see 1722cc56d22e);

#!/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