[fpc-pascal] fpmake custom options

Michael Van Canneyt michael at freepascal.org
Tue Apr 14 14:35:38 CEST 2009



On Tue, 14 Apr 2009, Mattias Gärtner wrote:

> How to add custom options?
> 
> The wiki of fpmake gives:
>   T.Options:= '-dSOMEDEFINE';
>   T.Options:= T.Options + ' -xyzAnythingYouNeed';
> 
> I tried a simple example:
>   T.Options:='-gl -vh';
> 
> And I got:
> Executing command "/usr/local/bin/fpc -Tdarwin -FUunits/i386-darwin
> -Fu/usr/local/lib/fpc/2.2.4/units/i386-darwin/rtl "-gl -vh"
> allcodetoolunits.pp"
> Error: Illegal parameter: -gl -vh
> 
> Apparently the Options are passed in "" which is read by FPC as one parameter.

Hm. That is a bug, we'll have to change that.

Michael.


More information about the fpc-pascal mailing list