Sign in Join

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

Mailing lists / fpc-pascal / 2012-04

Compilation progress

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

OBones

Hello,

Is there a way get progress information output by the compiler while building a project?
I tried the -vt option, but I can't figure out a way to parse this and get something like current value and max while the lines are output. I also tried to look in the lazarus sources but could not figure out how they do it either.

Any help would be very much appreciated.

Regards

Reply by email

Sven Barth
to OBones
OBones wrote 10 lines
Hello, Is there a way get progress information output by the compiler while building a project? I tried the -vt option, but I can't figure out a way to parse this and get something like current value and max while the lines are output. I also tried to look in the lazarus sources but could not figure out how they do it either. Any help would be very much appreciated.

FPC does not print continous line information. Only at the end if either in the fpc.cfg or the command line -vi is given it shows a line similar to the following one:

35 lines compiled, 1.4 sec

Regards,
Sven

Reply by email

Jonas Maebe
to OBones: Is there a way get progress information output by the compiler while building a project?…
OBones wrote
Is there a way get progress information output by the compiler while building a project? I tried the -vt option, but I can't figure out a way to parse this and get something like current value and max while the lines are output. I also tried to look in the lazarus sources but could not figure out how they do it either.

-vl shows progress every 100 lines. The compiler only knows the total number of lines once it reaches the end of the source file, so it does not print the total until it is finished.

Jonas

Reply by email

waldo kitty
to Jonas Maebe
Jonas Maebe wrote 8 lines
On 26 Apr 2012, at 17:31, OBones wrote: > Is there a way get progress information output by the compiler while building a project? > I tried the -vt option, but I can't figure out a way to parse this and get something like current value and max while the lines are output. > I also tried to look in the lazarus sources but could not figure out how they do it either. -vl shows progress every 100 lines. The compiler only knows the total number of lines once it reaches the end of the source file, so it does not print the total until it is finished.

is this why there is a blank line every X lines when logging via redirection? i've seen it but not hunted it down as to why ;)

Reply by email

OBones
to Jonas Maebe: -vl shows progress every 100 lines. The compiler only knows the total number of lines…
Jonas Maebe wrote 6 lines
On 26 Apr 2012, at 17:31, OBones wrote: > Is there a way get progress information output by the compiler while building a project? > I tried the -vt option, but I can't figure out a way to parse this and get something like current value and max while the lines are output. > I also tried to look in the lazarus sources but could not figure out how they do it either. -vl shows progress every 100 lines. The compiler only knows the total number of lines once it reaches the end of the source file, so it does not print the total until it is finished.

Hum, nice to know about -vl because I know the total number of lines as I generated the file just before calling FPC.
I'll work on that, thanks for the pointers

Reply by email