fixed win32 -> arm-wince crossinstaller build script for fpc 2.7.1 using fpmake in more places.

git-svn-id: trunk@35287 -
This commit is contained in:
vincents 2012-02-10 12:26:03 +00:00
parent 3e4defab13
commit db7829a1a5

View File

@ -60,15 +60,16 @@ rm -rf %FPCSVNDIR%\fpcsrc\compiler\*.exe
FOR /F %%L IN ('%FPCSVNDIR%\fpcsrc\compiler\utils\fpc.exe -PB') DO SET COMPILER=%FPCSVNDIR%\fpcsrc\compiler\%%L
FOR /F %%L IN ('%COMPILER% -iSO') DO SET FPCSourceOS=%%L
FOR /F %%L IN ('%COMPILER% -iSP') DO SET FPCSourceCPU=%%L
FOR /F %%L IN ('%FPCSVNDIR%\fpcsrc\compiler\utils\fpc.exe -P%TARGETCPU% -PB') DO SET PPCNAME=%%L
SET FPCFPMAKE=%COMPILER%
:: rebuild the rtl without WPO information
%MAKEEXE% rtl_clean rtl PP=%COMPILER%
%MAKEEXE% -C packages fpmkunit_all fcl-base_all FPC=%COMPILER%
::%MAKEEXE% -C packages fcl-base_all FPC=%COMPILER%
%MAKEEXE% -C utils fpcm_all FPC=%COMPILER%
:: Add -gtttt so that ShowBuiltinCommand is initialized to false, bug in fpc 2.4.4
%MAKEEXE% -C utils fpcmkcfg_all OPT="-gtttt" FPC=%COMPILER%
::%MAKEEXE% -C utils fpcmkcfg_all FPC=%COMPILER%
%MAKEEXE% compiler FPC=%COMPILER% PPC_TARGET=%TARGETCPU% EXENAME=%PPCNAME%
IF ERRORLEVEL 1 GOTO CLEANUP
@ -97,6 +98,8 @@ cp %CROSSBINDIR%\* %INSTALL_BINDIR%
%MAKEEXE% rtl_install packages_install FPCMAKE=%FPCSVNDIR%\fpcsrc\utils\fpcm\fpcmake.exe INSTALL_PREFIX=%INSTALL_BASE% FPC=%COMPILER%
copy %COMPILER% %INSTALL_BINDIR%
%MAKEEXE% -C packages fcl-base_all fcl-process_all FPC=%FPCFPMAKE% OS_TARGET=%FPCSourceOS% CPU_TARGET=%FPCSourceCPU%
%MAKEEXE% -C utils fpcmkcfg_all FPC=%FPCFPMAKE% OS_TARGET=%FPCSourceOS% CPU_TARGET=%FPCSourceCPU%
%FPCSVNDIR%\fpcsrc\utils\fpcmkcfg\fpcmkcfg.exe -d "basepath=%INSTALL_BASE%" -o %INSTALL_BINDIR%\fpc.cfg
SET COMPILER=%INSTALL_BINDIR%\%PPCNAME%