Sign in Join

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

Mailing lists / fpc-pascal / 2007-04

set output directory for resources

7 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

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

Vincent Snijders

Hi,

If I compile a unit which contains {$R wincemenures.res} a file named wincemenures.or is created in the source directory, even if I have set -FU or -FE. What parameter do I need to pass to the compile to move the .or file to the unit output directory?

Vincent

Vincent Snijders
to Vincent Snijders
Vincent Snijders wrote 6 lines
Hi, If I compile a unit which contains {$R wincemenures.res} a file named wincemenures.or is created in the source directory, even if I have set -FU or -FE. What parameter do I need to pass to the compile to move the .or file to the unit output directory?

Nobody answered, so I decided to dive into the compiler source myself and I think always the source directory is used.

Attached patch changes this to the output directory of the currently compiled module. Is this ok?

Vincent

Michael Van Canneyt
to Vincent Snijders
Vincent Snijders wrote 13 lines
Vincent Snijders schreef: > Hi, > > If I compile a unit which contains {$R wincemenures.res} a file named > wincemenures.or is created in the source directory, even if I have set -FU > or -FE. What parameter do I need to pass to the compile to move the .or file > to the unit output directory? Nobody answered, so I decided to dive into the compiler source myself and I think always the source directory is used. Attached patch changes this to the output directory of the currently compiled module. Is this ok?

Yes, it seems to me that this is OK. This should normally obey -FU or -FE.

Michael.

Florian Klaempfl
to Vincent Snijders: Nobody answered, so I decided to dive into the compiler source myself and I think always…
Show quoted text 13 lines
Vincent Snijders schreef: > Hi, > > If I compile a unit which contains {$R wincemenures.res} a file named > wincemenures.or is created in the source directory, even if I have set > -FU or -FE. What parameter do I need to pass to the compile to move > the .or file to the unit output directory? Nobody answered, so I decided to dive into the compiler source myself and I think always the source directory is used. Attached patch changes this to the output directory of the currently compiled module. Is this ok?

Looks ok.

Peter Vreman
to Vincent Snijders: Nobody answered, so I decided to dive into the compiler source myself and I think always…
Show quoted text 13 lines
Vincent Snijders schreef: > Hi, > > If I compile a unit which contains {$R wincemenures.res} a file named > wincemenures.or is created in the source directory, even if I have set > -FU or -FE. What parameter do I need to pass to the compile to move the > .or file to the unit output directory? Nobody answered, so I decided to dive into the compiler source myself and I think always the source directory is used. Attached patch changes this to the output directory of the currently compiled module. Is this ok?

ok

Vincent Snijders
to Peter Vreman
Peter Vreman wrote 15 lines
> Vincent Snijders schreef: >> Hi, >> >> If I compile a unit which contains {$R wincemenures.res} a file named >> wincemenures.or is created in the source directory, even if I have set >> -FU or -FE. What parameter do I need to pass to the compile to move the >> .or file to the unit output directory? > Nobody answered, so I decided to dive into the compiler source myself > and I think always the source directory is used. > > Attached patch changes this to the output directory of the currently > compiled module. Is this ok? ok

Committed in r7276. Can it be merged to the fixes branch?

Vincent

Graeme Geldenhuys
to Vincent Snijders
Vincent Snijders wrote
Committed in r7276. Can it be merged to the fixes branch?

That would be great...

Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342'