Skip to content

Commit 408a7b7

Browse files
author
Edward Thomson
committed
appveyor: don't rewrite system mingw
Download mingw-w64 into our build directory and execute it there, don't try to overwrite the system's mingw.
1 parent c3abb1d commit 408a7b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

script/appveyor-mingw.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ if [ "$ARCH" = "i686" ]; then
77
curl -LsSO http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.2/threads-win32/sjlj/$f
88
fi
99
7z x $f > /dev/null
10-
mv mingw32 /MinGW
10+
export PATH=`pwd`/mingw32/bin:$PATH
1111
else
1212
f=x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z
1313
if ! [ -e $f ]; then
1414
curl -LsSO http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/$f
1515
fi
1616
7z x $f > /dev/null
17-
mv mingw64 /MinGW
17+
export PATH=`pwd`/mingw64/bin:$PATH
1818
fi
1919
cd build
20+
gcc --version
21+
cmake --version
2022
cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON .. -G"$GENERATOR"
2123
cmake --build . --config RelWithDebInfo

0 commit comments

Comments
 (0)