forked from synopse/mORMot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compilFPC.bat
32 lines (20 loc) · 900 Bytes
/
compilFPC.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
set lib=d:\dev\lib
set bin=z:\tempbuild\fpc
set fpc=c:\fpcupdeluxe\fpc\bin\i386-win32\fpc.exe
if exist %fpc% (
cd \dev\lib
if not exist %bin% mkdir %bin%
del %bin%\*.exe %bin%\*.o %bin%\*.a %bin%\*.ppu %bin%\*.map %bin%\*.db3 %bin%\*.ini %bin%\*.data %bin%\*.mdb %bin%\TestSQL3.* > nul 2> nul
echo.
cd \dev\lib\SQLite3
echo Compiling using %fpc%...
@rem -O2 don't make GPF during DDD tests any more...
%fpc% -B -MObjFPC -Scgi -CX -O2 -XX -ve -dFPCSQLITE3STATIC -Fi%lib% -Fu%lib% -Fu%lib%\SQLite3 -Fu%lib%\kylix -l -Fl%lib%\fpc-win32 -FE%bin% TestSQL3.dpr >%bin%\compilMsg
rem %fpc% -B -MObjFPC -Scgi -CX -O1 -XX -ve -Fi%lib% -Fu%lib% -Fu%lib%\SQLite3 -l -Fl%lib%\fpc-win32 -FE%bin% TestSQL3.dpr >%bin%\compilation
del %bin%\*.o %bin%\*.a %bin%\*.ppu %bin%\*.mdb > nul
%bin%\TestSQL3
) else (
echo !!!! %fpc% not found !!!!
)
pause