summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2015-10-26 15:17:48 +0100
committerErich Eckner <git@eckner.net>2015-10-26 15:19:04 +0100
commit3ebfdf688593001cdd359d7b374d289a9dcfdbb2 (patch)
treee7515e510a77b18d5a772b3c74a8d6e6969ec8b6
parente92f46e2a7c2966c12241f5a56f476a9d44af4c8 (diff)
downloadunits-3ebfdf688593001cdd359d7b374d289a9dcfdbb2.tar.xz
Argumente aus IDE in gitupdateunit.pas übernommen
-rw-r--r--gitupdateunit.pas23
1 files changed, 17 insertions, 6 deletions
diff --git a/gitupdateunit.pas b/gitupdateunit.pas
index 37d3409..94e0263 100644
--- a/gitupdateunit.pas
+++ b/gitupdateunit.pas
@@ -34,16 +34,27 @@ initialization
if runCommandInDir(baseDir+'units','/usr/bin/git',args,output) then begin
updated:=updated or (output<>'Already up-to-date.'#10);
if updated then begin
- setlength(args,4);
- args[0]:='-Fu../units';
- args[1]:='-Mobjpas';
+ setlength(args,15);
+ args[0]:='-MObjFPC';
+ args[1]:='-Scghi';
+ args[2]:='-Cg';
+ args[3]:='-CirotR';
+ args[4]:='-O1';
+ args[5]:='-g';
+ args[6]:='-gl';
+ args[7]:='-l';
+ args[8]:='-vewnhibq';
+ args[9]:='-Filib/x86_64-linux';
+ args[10]:='-Fu../units';
+ args[11]:='-Fu.';
+ args[12]:='-FUlib/x86_64-linux';
tmpFile:=myDir+extractFileName(paramstr(0));
if fileexists(tmpFile+'.lpr') then
- args[2]:=tmpFile+'.lpr'
+ args[13]:=tmpFile+'.lpr'
else
- args[2]:=tmpFile+'.pas';
+ args[13]:=tmpFile+'.pas';
tmpFile:=mkTemp('/tmp/fpc.XXXXXX');
- args[3]:='-o'+tmpFile;
+ args[14]:='-o'+tmpFile;
if runCommandInDir(myDir,'/usr/bin/fpc',args,output) then begin
setlength(args,2);
args[0]:=tmpFile;