Skip to content

Commit

Permalink
Set sys-pkg-manager-path as pacman.exe
Browse files Browse the repository at this point in the history
Aligns with ocaml/opam#5348
  • Loading branch information
jonahbeckford committed Dec 16, 2022
1 parent f537618 commit 45b9997
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unix/private/init-opam-root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,12 @@ if [ -n "${DKMLMSYS2DIR_BUILDHOST:-}" ] && [ -n "${MSYSTEM:-}" ]; then
run_opam var --global "mingw-prefix=${MINGW_PREFIX:-}"
run_opam var --global "mingw-package-prefix=${MINGW_PACKAGE_PREFIX:-}"
run_opam var --global "msys2-nativedir=$DKMLMSYS2DIR_BUILDHOST"
if [ -x /usr/bin/cygpath ]; then
syspkgmgrpath=$(/usr/bin/cygpath -aw "$DKMLMSYS2DIR_BUILDHOST/usr/bin/pacman.exe")
else
syspkgmgrpath="$DKMLMSYS2DIR_BUILDHOST/usr/bin/pacman"
fi
run_opam var --global "sys-pkg-manager-path=$syspkgmgrpath"
fi

# Diagnostics
Expand Down

0 comments on commit 45b9997

Please sign in to comment.