author | wenzelm |
Wed, 20 Mar 2019 17:33:06 +0100 | |
changeset 69924 | 512ac874bb9d |
parent 69268 | c1a27fce2076 |
permissions | -rwxr-xr-x |
69135 | 1 |
#!/usr/bin/env bash |
2 |
# |
|
3 |
# Author: Makarius |
|
4 |
# |
|
69268
c1a27fce2076
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;
wenzelm
parents:
69261
diff
changeset
|
5 |
# Invoke ocamlc via "opam". |
69135 | 6 |
|
69924
512ac874bb9d
more robust: allow empty root (e.g. via symlink);
wenzelm
parents:
69268
diff
changeset
|
7 |
if [ -e "$ISABELLE_OPAM_ROOT/config" ] |
69261 | 8 |
then |
9 |
isabelle_opam config exec --switch "$ISABELLE_OCAML_VERSION" -- ocamlc "$@" |
|
10 |
else |
|
11 |
echo "Cannot execute ocamlc: missing Isabelle OCaml setup" >&2 |
|
12 |
exit 127 |
|
13 |
fi |