| author | Manuel Eberl <eberlm@in.tum.de> |
| Mon, 04 Feb 2019 12:16:03 +0100 | |
| changeset 69785 | 9e326f6f8a24 |
| parent 69268 | c1a27fce2076 |
| child 69924 | 512ac874bb9d |
| 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 |
|
|
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
|
7 |
if [ -d "$ISABELLE_OPAM_ROOT" ] |
| 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 |