Skip to content

Commit bca75f9

Browse files
committed
- pushd doesn't understand any string with forward slashes, use cd instead.
- add more info to the log files so we can debug a bit if needed. - force just the paths we need and NOTHING else. git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10300 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent d8f21ef commit bca75f9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Compiler/scripts/Compile.bat

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ set MINGW=%OPENMODELICAHOME%\MinGW
99
REM If OMDEV is set, use MinGW from there instead of OPENMODELICAHOME
1010
REM It is not certain that release OMC is installed
1111
if not %OMDEV%a==a set MINGW=%OMDEV%\tools\MinGW
12-
pushd "%MINGW%\bin" >%1.log 2<&1
13-
set PATH=%CD%;%MinGW%\libexec\gcc\mingw32\4.4.0\;%PATH%
12+
echo OPENMODELICAHOME = %OPENMODELICAHOME% > %1.log 2>&1
13+
pushd . >>%1.log 2>&1
14+
cd "%MINGW%\bin"
15+
set PATH=%CD%;%CD%\..\libexec\gcc\mingw32\4.4.0\;
1416
popd
15-
%MinGW%\bin\mingw32-make -f %1.makefile >>%1.log 2<&1
17+
echo PATH = %PATH% >>%1.log 2>&1
18+
echo CD = %CD% >>%1.log 2>&1
19+
%MinGW%\bin\mingw32-make -f %1.makefile >>%1.log 2>&1
1620
set RESULT=%ERRORLEVEL%
1721
set PATH=%OLD_PATH%
1822
set OLD_PATH=

0 commit comments

Comments
 (0)