Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb07fca

Browse files
author
stonebig
committed
fix mingwpy configuration miss
1 parent 5f3e9b0 commit fb07fca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

make.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -805,8 +805,10 @@ def _create_batch_scripts(self):
805805
set WINPYARCH="WIN32"
806806
if "%WiNPYDIR:~-5%"=="amd64" set WINPYARCH="WIN-AMD64"
807807
808-
if %WINPYARCH%=="WIN32" set WINMINGW=lib\gcc\i686-w64-mingw32
809-
if %WINPYARCH%=="WIN-AMD64" set WINMINGW=lib\gcc\x86_64-w64-mingw32
808+
if %WINPYARCH%=="WIN32" set BASEMINGW=i686-w64-mingw32
809+
if %WINPYARCH%=="WIN-AMD64" set BASEMINGW=x86_64-w64-mingw32
810+
811+
set WINMINGW=lib\gcc\%BASEMINGW%
810812
811813
if not %WINPYARCH%=="WIN-AMD64" goto no_distutil_patch
812814
%~dp0Find_And_replace.vbs "%WINPYDIR%\Lib\distutils\cygwinccompiler.py" "-O -W" "-O -DMS_WIN64 -W"
@@ -822,7 +824,7 @@ def _create_batch_scripts(self):
822824
IF "%WINPYXX%"=="27" set WINPYSPEC=specs90
823825
824826
cd %WINPYDIR%
825-
copy /Y ..\tools\mingw32\%WINMINGW%\lib\%WINPYMSVCR% libs\%WINPYMSVCR%
827+
copy /Y ..\tools\mingw32\%BASEMINGW%\lib\%WINPYMSVCR% libs\%WINPYMSVCR%
826828
827829
REM copy the right version of gcc
828830
set dir482=..\tools\mingw32\%WINMINGW%\4.8.2\%WINPYSPEC%

0 commit comments

Comments
 (0)