Skip to content

Commit 0332284

Browse files
committed
Fix MinGW build on Appveyor by changing search path order
C:\MinGW\bin should go first to prevent executables from older version of MinGW in C:\MinGW\mingw32 being picked up.
1 parent 7154238 commit 0332284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support/appveyor-build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
test_command = ['mingw32-make', 'test']
1515
# Remove the path to Git bin directory from $PATH because it breaks MinGW config.
1616
path = path.replace(r'C:\Program Files (x86)\Git\bin', '')
17-
os.environ['PATH'] = path + r';C:\MinGW\bin'
17+
os.environ['PATH'] = r'C:\MinGW\bin;' + path
1818
else:
1919
# Add MSBuild 14.0 to PATH as described in
2020
# http://help.appveyor.com/discussions/problems/2229-v140-not-found-on-vs2105rc.

0 commit comments

Comments
 (0)