aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/win32/make-mingwlibs.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tools/buildsteps/win32/make-mingwlibs.bat')
-rw-r--r--tools/buildsteps/win32/make-mingwlibs.bat12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/buildsteps/win32/make-mingwlibs.bat b/tools/buildsteps/win32/make-mingwlibs.bat
index 98930e05ef..cdb63b4c6a 100644
--- a/tools/buildsteps/win32/make-mingwlibs.bat
+++ b/tools/buildsteps/win32/make-mingwlibs.bat
@@ -1,4 +1,6 @@
@ECHO OFF
+SETLOCAL
+
rem batch file to compile mingw libs via BuildSetup
SET WORKDIR=%WORKSPACE%
rem set M$ env
@@ -15,9 +17,13 @@ FOR %%b in (%1, %2, %3) DO (
)
IF "%WORKDIR%"=="" (
- SET WORKDIR=%CD%\..\..\..
+ SET WORKDIR=%~dp0\..\..\..
)
+REM Prepend the msys and mingw paths onto %PATH%
+SET MSYS_INSTALL_PATH=%WORKDIR%\project\BuildDependencies\msys
+SET PATH=%MSYS_INSTALL_PATH%\mingw\bin;%MSYS_INSTALL_PATH%\bin;%PATH%
+
SET ERRORFILE=%WORKDIR%\project\Win32BuildSetup\errormingw
SET BS_DIR=%WORKDIR%\project\Win32BuildSetup
@@ -53,4 +59,6 @@ GOTO ENDWITHERROR
ECHO failed to build mingw libs
EXIT /B 1
)
- EXIT /B 0 \ No newline at end of file
+ EXIT /B 0
+
+ENDLOCAL