Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2009-04

fpmake custom options

8 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gärtner

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.

Mattias

Mattias Gärtner
to Michael Van Canneyt: Hm. That is a bug, we'll have to change that. Michael.

Zitat von Michael Van Canneyt :

Show quoted text 23 lines
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.

Should I create a bug report?

Mattias

Michael Van Canneyt
to Mattias Gärtner: How to add custom options? The wiki of fpmake gives: T.Options:= '-dSOMEDEFINE';…
Mattias Gärtner wrote 16 lines
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.

Michael Van Canneyt
to Mattias Gärtner: Zitat von Michael Van Canneyt : Should I create a bug report? Mattias
Mattias Gärtner wrote 27 lines
Zitat von Michael Van Canneyt : > > > 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. Should I create a bug report?

Please do, that way it won't be forgotten.

Michael.

Mattias Gärtner
to Michael Van Canneyt

Zitat von Michael Van Canneyt :

Show quoted text 5 lines
[...] > > > I tried a simple example: > > > T.Options:='-gl -vh'; [...] Please do, that way it won't be forgotten.

Is the tracker online? I can't reach it.

Mattias

Mattias Gärtner
to Vincent Snijders

Zitat von Vincent Snijders :

Mattias Gärtner schreef: > Is the tracker online? I can't reach it. I can reach it without problems.

I can reach it only every third reload. I created the bug report.

Mattias