lib/Tools/ocaml_setup
changeset 69139 4f3d93f0ba94
parent 69135 be20f5f6feb9
child 69149 8c501c406d24
--- a/lib/Tools/ocaml_setup	Tue Oct 09 09:53:13 2018 +0200
+++ b/lib/Tools/ocaml_setup	Tue Oct 09 13:06:39 2018 +0200
@@ -4,4 +4,9 @@
 #
 # DESCRIPTION: OCaml setup via OPAM
 
-isabelle_opam init --no-setup --compiler="$ISABELLE_OCAML_VERSION" "$@"
+if [ -d "$ISABELLE_OPAM_ROOT" ]
+then
+  isabelle_opam switch "$ISABELLE_OCAML_VERSION"
+else
+  isabelle_opam init --no-setup --compiler="$ISABELLE_OCAML_VERSION"
+fi