Sign in Join

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

Mailing lists / fpc-devel / 2010-02

compiler output and resources

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Paul Ishenin

Hello, FPC developers' list.

Is there a reason that during project compilation compiler duplicates all the resource files in the compiler output dir? For me it looks as both a waste of time and hdd free size. This happens for all LFM and RES files which my project includes.

Best regards, Paul Ishenin.

Reply by email

Giulio Bernardi
to Paul Ishenin

Il 01/02/2010 04:09, Paul Ishenin ha scritto:

Show quoted text 7 lines
Hello, FPC developers' list. Is there a reason that during project compilation compiler duplicates all the resource files in the compiler output dir? For me it looks as both a waste of time and hdd free size. This happens for all LFM and RES files which my project includes.

The reason is explained in this log message (2008-01-10):

* .res files must be copied to units output folder, otherwise .res files will not be found when only compiled units path is available and compiler does not know anything about sources folder.

Giulio

Reply by email

Paul Ishenin
to Giulio Bernardi
Giulio Bernardi wrote 5 lines
The reason is explained in this log message (2008-01-10): * .res files must be copied to units output folder, otherwise .res files will not be found when only compiled units path is available and compiler does not know anything about sources folder.

Don't understand. To copy the res file compiler must know the location to copy from. No?

Best regards,
Paul Ishenin.

Reply by email

Giulio Bernardi
to Paul Ishenin

Il 01/02/2010 08:58, Paul Ishenin ha scritto:

Show quoted text 11 lines
01.02.2010 14:50, Giulio Bernardi wrote: > The reason is explained in this log message (2008-01-10): > > * .res files must be copied to units output folder, otherwise .res files > will not be found when only compiled units path is available and > compiler does not know anything about sources folder. Don't understand. To copy the res file compiler must know the location to copy from. No?

It copies the .res files from where they are to the compiler output directory. I agree that it might be better to directly put .res files in the output directory, just I don't remember now if there were some drawbacks...

Giulio

Reply by email

Marco van de Voort
to Paul Ishenin: Don't understand. To copy the res file compiler must know the location to copy from. No?…

In our previous episode, Paul Ishenin said:

Show quoted text 8 lines
> The reason is explained in this log message (2008-01-10): > > * .res files must be copied to units output folder, otherwise .res files > will not be found when only compiled units path is available and > compiler does not know anything about sources folder. Don't understand. To copy the res file compiler must know the location to copy from. No?

Yes, but it might not have the source (src/) directory later for the next compile, only the output dir.(units/$FPCTARGET)

Reply by email

Paul Ishenin
to Marco van de Voort
Marco van de Voort wrote
Yes, but it might not have the source (src/) directory later for the next compile, only the output dir.(units/$FPCTARGET)

For the later compile it has .or file which has all lfm and res merged together.

Best regards,
Paul Ishenin.

Reply by email