more robust "switch create";
authorwenzelm
Thu, 21 Mar 2019 13:34:37 +0100
changeset 69936 772bdd1ed843
parent 69935 11d0fdb29ebc
child 69937 afbc075fd2da
more robust "switch create"; disable sandboxing to avoid dependency on bubblewrap (unavailable on Ubuntu 16.04);
lib/Tools/ocaml_setup
--- a/lib/Tools/ocaml_setup	Thu Mar 21 12:41:58 2019 +0100
+++ b/lib/Tools/ocaml_setup	Thu Mar 21 13:34:37 2019 +0100
@@ -8,9 +8,9 @@
 
 if [ -e "$ISABELLE_OPAM_ROOT/config" ]
 then
-  isabelle_opam switch "$ISABELLE_OCAML_VERSION"
+  isabelle_opam switch create "ocaml-base-compiler.$ISABELLE_OCAML_VERSION"
 else
-  isabelle_opam init --no-setup --compiler="$ISABELLE_OCAML_VERSION"
+  isabelle_opam init --disable-sandboxing --no-setup --compiler="ocaml-base-compiler.$ISABELLE_OCAML_VERSION"
 fi
 
 isabelle_opam install zarith -y