File tree Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ :: Find root dir
2+ @ if not defined MSYS2_ROOT (
3+ for /f %%i in (" %~dp0 \.." ) do @ set MSYS2_ROOT = %%~fi
4+ )
5+
6+ :: Enhance Path
7+ @ set MINGW32 = %MSYS2_ROOT% \mingw32
8+ @ set MINGW64 = %MSYS2_ROOT% \mingw64
9+
10+ @ if " %PROCESSOR_ARCHITECTURE% " == " x86" (
11+ @ set MINGW = %MINGW32%
12+ ) else (
13+ @ set MINGW = %MINGW64%
14+ )
15+
16+ @ if defined VS120COMNTOOLS (
17+ @ call " %VS120COMNTOOLS% vsvars32.bat"
18+ )
19+ @ if defined VS140COMNTOOLS (
20+ @ call " %VS140COMNTOOLS% vsvars32.bat"
21+ )
22+ @ set PYTHON_EXECUTABLE = %MINGW% \bin\python.exe
23+ @ set MINGW_PATH = %MINGW% \bin
24+ @ set PATH = %MSYS2_ROOT% \win32;%MINGW_PATH% ;%MSYS2_ROOT% \usr\bin;C:\Windows\System32;C:\Windows
25+ @ if EXIST %MSYS2_ROOT% \usr\bin\sh.exe move /Y %MSYS2_ROOT% \usr\bin\sh.exe %MSYS2_ROOT% \usr\bin\sh.exe.old > NUL
Original file line number Diff line number Diff line change 1+ :: Find root dir
2+ @ if not defined MSYS2_ROOT (
3+ for /f %%i in (" %~dp0 \.." ) do @ set MSYS2_ROOT = %%~fi
4+ )
5+
6+ :: Enhance Path
7+ @ set MINGW32 = %MSYS2_ROOT% \mingw32
8+ @ set MINGW64 = %MSYS2_ROOT% \mingw64
9+
10+ @ set MINGW = %MINGW32%
11+
12+ @ if defined VS120COMNTOOLS (
13+ @ call " %VS120COMNTOOLS% vsvars32.bat"
14+ )
15+ @ if defined VS140COMNTOOLS (
16+ @ call " %VS140COMNTOOLS% vsvars32.bat"
17+ )
18+ @ set PYTHON_EXECUTABLE = %MINGW% \bin\python.exe
19+ @ set MINGW_PATH = %MINGW% \bin
20+ @ set PATH = %MSYS2_ROOT% \win32;%MINGW_PATH% ;%MSYS2_ROOT% \usr\bin;C:\Windows\System32;C:\Windows
21+ @ if EXIST %MSYS2_ROOT% \usr\bin\sh.exe move /Y %MSYS2_ROOT% \usr\bin\sh.exe %MSYS2_ROOT% \usr\bin\sh.exe.old > NUL
You can’t perform that action at this time.
0 commit comments