lib/Tools/ocaml_setup
author wenzelm
Thu, 21 Mar 2019 13:34:37 +0100
changeset 69936 772bdd1ed843
parent 69928 3ed262d72468
child 69938 564985d6867e
permissions -rwxr-xr-x
more robust "switch create"; disable sandboxing to avoid dependency on bubblewrap (unavailable on Ubuntu 16.04);

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: setup OCaml via OPAM

set -e

if [ -e "$ISABELLE_OPAM_ROOT/config" ]
then
  isabelle_opam switch create "ocaml-base-compiler.$ISABELLE_OCAML_VERSION"
else
  isabelle_opam init --disable-sandboxing --no-setup --compiler="ocaml-base-compiler.$ISABELLE_OCAML_VERSION"
fi

isabelle_opam install zarith -y