Sign in Join

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

Mailing lists / lazarus / 2015-03

lazbuild parameter --max-process-count

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner

Hi,

I added a new parameter to lazbuild.

--max-process-count=<count>
Maximum number of threads for compiling in
parallel. Default is 0, which guesses the number of cores in the system.

When you have trouble reading the output of lazbuild you can for example use --max-process-count=1 .

I heard that on some Windows machines FPC locks some files, so that parallel compilation fails. I could not reproduce it, but if you have the problem, you know have a workaround.

Mattias

Reply by email

Henry Vermaak
to Mattias Gaertner
Mattias Gaertner wrote 11 lines
Hi, I added a new parameter to lazbuild. --max-process-count=<count> Maximum number of threads for compiling in parallel. Default is 0, which guesses the number of cores in the system. When you have trouble reading the output of lazbuild you can for example use --max-process-count=1 .

Great feature, thanks!

I heard that on some Windows machines FPC locks some files, so that parallel compilation fails. I could not reproduce it, but if you have the problem, you know have a workaround.

I fire a pile of lazbuild commands off from a Makefile, but I've had to prevent make from running them in parallel, due to an fpc file (some link file, I can't remember), that always has the same name, getting created in the output directory. I should file a bug report, temporary files belong somewhere else and at the very least should have unique names.

Henry

Reply by email

Mattias Gaertner
to Henry Vermaak
[...] I fire a pile of lazbuild commands off from a Makefile, but I've had to prevent make from running them in parallel, due to an fpc file (some link file, I can't remember),

ppas.sh and link.res are created in the output directory. So you can run only one fpc per output directory.

Mattias

Reply by email