Skip to content

Commit

Permalink
Add a bit of speedup for building a crosscompiler.
Browse files Browse the repository at this point in the history
LongDirtyAnimAlf committed Nov 10, 2024
1 parent 04989b8 commit 78ea496
Showing 2 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions sources/fpcup.ini
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
; ... and you can define your own, like below:

[fpcupinfo]
inifileversion=2.2.8.0
inifileversion=4.0.0.1

[ALIASfpcURL]
stable.git=https://github.com/LongDirtyAnimAlf/fpcsource_3_2_2.git
@@ -1870,7 +1870,8 @@ Description="ESS-Model is a powerful, reverse engine, UML-tool for Pascal and Ja
Category=tools
Installdir=$(basedir)/ccr/$(name)
Enabled=0
GITURL=https://github.com/JuhaManninen/Laz-Model
;GITURL=https://github.com/JuhaManninen/Laz-Model
GITURL=https://github.com/iLya2IK/Laz-Model
;ArchiveURL=https://sourceforge.net/projects/essmodelforlaza/files/latest/download
;ArchiveURL=https://sourceforge.net/code-snapshots/svn/e/es/essmodelforlaza/code/essmodelforlaza-code-r78-branches-essmodel_3.1_refactoring.zip
UnInstall=rm -Rf $(Installdir)
13 changes: 7 additions & 6 deletions sources/installerfpc.pas
Original file line number Diff line number Diff line change
@@ -1186,14 +1186,15 @@ function TFPCCrossInstaller.BuildModuleCustom(ModuleName: string): boolean;

//Still not clear if jobs can be enabled for crosscompiler builds ... :-|
//However, on Windows, erroros occur frequently due to more jobs.
//So, again, disabling for the time being.
{
if (NOT FNoJobs) then
//So, again, disabling for the time being, except for building the packages.
if (MakeCycle in [st_PackagesBuild,st_PackagesInstall]) then
begin
Processor.SetParamNameData('--jobs',IntToStr(FCPUCount));
Processor.SetParamNameData('FPMAKEOPT','--threads='+IntToStr(FCPUCount));
if (NOT FNoJobs) then
begin
Processor.SetParamNameData('--jobs',IntToStr(FCPUCount));
Processor.SetParamNameData('FPMAKEOPT','--threads='+IntToStr(FCPUCount));
end;
end;
}

Processor.SetParamNameData('--directory',SourceDirectory);

0 comments on commit 78ea496

Please sign in to comment.