author | haftmann |
Sun, 18 Nov 2018 18:07:51 +0000 | |
changeset 69313 | b021008c5397 |
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 |