Auto merge of #122321 - majaha:mingw_ci_new, r=Mark-Simulacrum
`mv` tools off the path instead of `rm -r`-ing them in `install-msys2.sh` This is a follow up patch to https://github.com/rust-lang/rust/pull/121182 r? `@Mark-Simulacrum`
This commit is contained in:
commit
c8f0d492a7
2 changed files with 16 additions and 13 deletions
|
|
@ -28,16 +28,19 @@ if isWindows; then
|
|||
# Install pacboy for easily installing packages
|
||||
pacman -S --noconfirm pactoys
|
||||
|
||||
# Delete these pre-installed tools so we can't accidentally use them, because we are using the
|
||||
# MSYS2 setup action versions instead.
|
||||
# Delete pre-installed version of MSYS2
|
||||
echo "Cleaning up tools in PATH"
|
||||
rm -r "/c/msys64/"
|
||||
# Delete Strawberry Perl, which contains a version of mingw
|
||||
rm -r "/c/Strawberry/"
|
||||
# Delete these other copies of mingw, I don't even know where they come from.
|
||||
rm -r "/c/mingw64/"
|
||||
rm -r "/c/mingw32/"
|
||||
# Remove these pre-installed tools so we can't accidentally use them, because we are using the
|
||||
# MSYS2 setup action versions instead. Because `rm -r`-ing them is slow, we mv them off path
|
||||
# instead.
|
||||
# Remove pre-installed version of MSYS2
|
||||
echo "Cleaning up existing tools in PATH"
|
||||
notpath="/c/NOT/ON/PATH/"
|
||||
mkdir --parents "$notpath"
|
||||
mv -t "$notpath" "/c/msys64/"
|
||||
# Remove Strawberry Perl, which contains a version of mingw
|
||||
mv -t "$notpath" "/c/Strawberry/"
|
||||
# Remove these other copies of mingw, I don't even know where they come from.
|
||||
mv -t "$notpath" "/c/mingw64/"
|
||||
mv -t "$notpath" "/c/mingw32/"
|
||||
echo "Finished cleaning up tools in PATH"
|
||||
|
||||
if isKnownToBeMingwBuild; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue