[Lazarus] building lazarus from the command line...
waldo kitty
wkitty42 at windstream.net
Mon Apr 23 12:57:48 CEST 2012
On 4/22/2012 20:01, waldo kitty wrote:
> On 4/22/2012 14:51, Mattias Gaertner wrote:
>> On Thu, 19 Apr 2012 21:05:11 -0400
>> waldo kitty<wkitty42 at windstream.net> wrote:
>>> i hope this is what you are looking for???
>>
>> Compare the differences.
>
> the only differences i see are "-dDEBUG -dVERBOSE"... these are selected in the
> miscellaneousoptions_xml but i still don't see how these can influence...
> especially since the one WITH "-dDEBUG -dVERBOSE" is the /smaller/ one...
>
> TBH, i actually expect that the "debug ide" would have at least "-dDEBUG" as
> default since it is a debug version and it would seem that one would want all
> the debug capability they can get... "-dVERBOSE" seems to indicates more
> messages which are also important in debugging so i would expect it, too, to be
> included... maybe i'm missing something??
dude... sorry... there is another difference... it woke me up...
withOUT miscellaneousoptions.xml, "normal ide", "debug ide" and "optimized ide"
default to "automatic" for cleaning files and "clean + build" defaults to
cleaning common files...
my miscellaneousoptions.xml sets "debug ide" to "clean all" and leaves the
others in their defaults...
digging back into the logs i see that without miscellaneousoptions.xml in play,
the notices the compiler params have changed whereas with
miscellaneousoptions.xml, there is no notice of this since the state file has
been cleaned... ok, i can understand that... but something is different, though,
because with miscellaneousoptions.xml, lazarus.exe is smaller than without
miscellaneousoptions.xml being used...
and there's also the discrepancy i noted previously in my post with the fpc
lines where one has 8 of those lines and the other has 10 of them... but i
believe that that is attributable to the inclusion of the chmhelp package with
miscellaneousoptions.xml...
so, really the only differences that i've found have been the inclusion of the
defines "-dDEBUG -dVERBOSE" and the cleaning of the sources...
my build flow with lazbuild is
1. clean up + build all
2. normal ide
3. debug ide
4. optimized ide
04/22/2012 22:35 76,586,191 lazarus_r36985_w-xml-debug.exe
04/22/2012 23:56 113,277,972 lazarus_r36985_wo-xml-debug.exe
36,691,781 bytes difference...
===== without-miscellaneousoptions_xml.log =====
***************************************************************************
***************************************************************************
* TASK: Debug IDE
* CMND: lazbuild.exe --build-ide= --build-mode="debug ide"
*
primary config path: C:\Documents and Settings\e3br42x1\Local
Settings\Application Data\lazarus
Building Lazarus IDE with profile "Debug IDE"
TBuildManager.SetBuildTargetIDE OS=win32 CPU=i386 WS=win32
TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile Compiler params changed for
FCL 1.0.1
Old=" -MObjFPC -Scghi -O1 -g -gl -vewnhi -l
-FuC:\freepascal\laz\packager\registration\
-FUC:\freepascal\laz\packager\units\i386-win32\ fcllaz.pas"
Now=" -MObjFPC -Scghi -O1 -g -gl -vewnhi -l
-FuC:\freepascal\laz\packager\registration\
-FUC:\freepascal\laz\packager\units\i386-win32\ -gw -gl -godwarfsets -gh -gt -Co
-Cr -Ci -Sa fcllaz.pas"
State file="C:\freepascal\laz\packager\units\i386-win32\FCL.compiled"
[TExternalToolList.Run] CmdLine="C:\freepascal\fpc\2.4.5\bin\i386-win32\fpc.exe
-B -MObjFPC -Scghi -O1 -g -gl -vewnhi -l
-FuC:\freepascal\laz\packager\registration\
-FUC:\freepascal\laz\packager\units\i386-win32\ -gw -gl -godwarfsets -gh -gt -Co
-Cr -Ci -Sa fcllaz.pas" WorkDir="C:\freepascal\laz\packager\registration\"
Hint: Start of reading config file C:\freepascal\fpc\2.4.5\bin\i386-win32\fpc.cfg
Hint: End of reading config file C:\freepascal\fpc\2.4.5\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.4.5 [2011/06/01] for i386
==========
===== with-miscellaneousoptions_xml.log =====
***************************************************************************
***************************************************************************
* TASK: Debug IDE
* CMND: lazbuild.exe --build-ide= --build-mode="debug ide"
*
primary config path: C:\Documents and Settings\e3br42x1\Local
Settings\Application Data\lazarus
Building Lazarus IDE with profile "Debug IDE"
TBuildManager.SetBuildTargetIDE OS=win32 CPU=i386 WS=win32
[TExternalToolList.Run] CmdLine="C:\freepascal\binutils\i386-win32\make.exe
cleanlaz -w" WorkDir="C:\freepascal\laz\"
[... trim cleanlaz output ...]
"Clean Lazarus Source" completed
TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile Missing state file for FCL
1.0.1: C:\freepascal\laz\packager\units\i386-win32\FCL.compiled
[TExternalToolList.Run] CmdLine="C:\freepascal\fpc\2.4.5\bin\i386-win32\fpc.exe
-B -MObjFPC -Scghi -O1 -g -gl -vewnhi -l
-FuC:\freepascal\laz\packager\registration\
-FUC:\freepascal\laz\packager\units\i386-win32\ -gw -gl -godwarfsets -gh -gt -Co
-Cr -Ci -Sa -dDebug -dVerbose fcllaz.pas"
WorkDir="C:\freepascal\laz\packager\registration\"
Hint: Start of reading config file C:\freepascal\fpc\2.4.5\bin\i386-win32\fpc.cfg
Compiling Debug Version
Hint: End of reading config file C:\freepascal\fpc\2.4.5\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 2.4.5 [2011/06/01] for i386
==========
More information about the Lazarus
mailing list