Skip to content

Commit 5573cd3

Browse files
committed
Prevent /msys64/bin from being prepended to PATH
1 parent 80c0919 commit 5573cd3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ci/scripts/install-mingw.sh

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ if isWindows && isKnownToBeMingwBuild; then
3232
;;
3333
esac
3434

35+
# Stop /msys64/bin from being prepended to PATH by adding the bin directory manually.
36+
# Note that this intentionally uses a Windows style path instead of the msys2 path to
37+
# avoid being auto-translated into `/usr/bin`, which will not have the desired effect.
38+
msys2Path="c:/msys64"
39+
ciCommandAddPath "${msys2Path}/usr/bin"
40+
3541
mingw_dir="mingw${bits}"
3642

3743
curl -o mingw.7z "${MIRRORS_BASE}/${mingw_archive}"

0 commit comments

Comments
 (0)