Skip to content

Commit 9ba48fd

Browse files
committed
additional non-posix make and env.bat for setting proper environment variables for win32 mode
1 parent 9e7d8b4 commit 9ba48fd

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

x64/win32/env.bat

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

x64/win32/make.exe

229 KB
Binary file not shown.

x86/win32/env.bat

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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

x86/win32/make.exe

229 KB
Binary file not shown.

0 commit comments

Comments
 (0)