lib/scripts/ocamlc
author wenzelm
Wed, 27 Feb 2019 16:28:46 +0100
changeset 69844 b21ddfa7042b
parent 69268 c1a27fce2076
child 69924 512ac874bb9d
permissions -rwxr-xr-x
clarified quasi_consolidated status after 5f160df596c1 -- relevant for headless PIDE session (e.g. "isabelle dump");

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

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