| author | wenzelm | 
| Fri, 11 Oct 2019 11:16:36 +0200 | |
| changeset 70829 | 1fa55b0873bc | 
| parent 69949 | a7a0115061ec | 
| permissions | -rwxr-xr-x | 
| 69151 | 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: 
69267diff
changeset | 5 | # Invoke ghc via "stack". | 
| 69151 | 6 | |
| 69949 | 7 | if [ -f "$ISABELLE_STACK_ROOT/ISABELLE_GHC_EXE-$ISABELLE_PLATFORM_FAMILY" ] | 
| 8 | then | |
| 69267 
517655a528fe
always insist in specified resolver/compiler version;
 wenzelm parents: 
69265diff
changeset | 9 | isabelle_stack ghc -- "$@" | 
| 69158 
1722cc56d22e
more robust: avoid implicit setup (with default resolver);
 wenzelm parents: 
69151diff
changeset | 10 | else | 
| 69160 | 11 | echo "Cannot execute ghc: missing Isabelle GHC setup" >&2 | 
| 69158 
1722cc56d22e
more robust: avoid implicit setup (with default resolver);
 wenzelm parents: 
69151diff
changeset | 12 | exit 127 | 
| 
1722cc56d22e
more robust: avoid implicit setup (with default resolver);
 wenzelm parents: 
69151diff
changeset | 13 | fi |