Fix compilation with OCaml 4220e2cb9b

This commit is contained in:
Anthony Scemama 2023-02-06 13:55:46 +01:00
parent 0cae3b9e94
commit 78dcb2c4d5
1 changed files with 3 additions and 5 deletions

View File

@ -2,11 +2,9 @@
if [[ -z $OPAMROOT ]] if [[ -z $OPAMROOT ]]
then then
export PATH="${QP_ROOT}/external/opampack/:$PATH"
# Comment these lines if you have a system-wide OCaml installation if [[ -f "${QP_ROOT}/external/opampack/opam" ]] ; then
export PATH="${QP_ROOT}/external/ocaml-bundle/bootstrap/bin:$PATH" eval $("${QP_ROOT}/external/opampack/opam" env --root "${QP_ROOT}/external/opampack/opamroot" --set-root)
if [[ -f "${QP_ROOT}/external/ocaml-bundle/bootstrap/bin/opam" ]] ; then
eval $(opam env --root "${QP_ROOT}/external/ocaml-bundle/opam" --set-root)
fi fi
fi fi
source ${OPAMROOT}/opam-init/init.sh > /dev/null 2> /dev/null || true source ${OPAMROOT}/opam-init/init.sh > /dev/null 2> /dev/null || true