Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does compilation through MSBuild take so much longer than through the IDE?

Tags:

msbuild

delphi

Here is my bat file.

call "C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\bin\rsvars.bat"
msbuild.exe C:\Work\Project1.dproj /t:Rebuild /p:Config=Debug;Platform=Win32

This seems to work well; however, it's taking 12 minutes to build. That same configuration/platform combination takes 2 mins 30 secs when doing a full build in the IDE. I've been unsuccessful in locating the cause of the slowdown. Any ideas or settings I should be looking at?

EDIT: I was using IDEFixPack 5.3 and getting build times ~2.5 mins. Removing IDEFixPack results in 12 min builds in the IDE as well.

like image 538
Michael S. Avatar asked Oct 21 '22 04:10

Michael S.


2 Answers

Per David Heffernan's suggestion I removed IDEFixPack and I see the same 12 min build times as I do with msbuild.

like image 65
Michael S. Avatar answered Nov 15 '22 09:11

Michael S.


I guess there are some packages for which the IDE somehow can find the compiled dcu's in the path and MSBuild can only find the source.

Doesn't MSBuild output a compilation log that you can examine or post here?

like image 41
Birger Avatar answered Nov 15 '22 09:11

Birger