What are the text mode equivalents of build modes? lazarus / 13-General ---------------------------------------------------------------------- vfclists · 2014-07-10 14:35 What kind of compiler and linker commands to build modes generate? Is it possible to use build modes in source code only, thus making them easier to compare? In fact I would like to know how IDE settings in general get translated to compiling and linking commands. Does it all go into ppas.bat? ---------------------------------------------------------------------- marcov · 2014-07-10 15:30 ppas.bat is generated by the compiler. Buildmodes is a pure Lazarus concept. So both are unrelated. Probably you can access buildmodes commandline using lazbuild, but that might only be for running, not editing. ---------------------------------------------------------------------- Leledumbo · 2014-07-10 15:39 QuoteWhat kind of compiler and linker commands to build modes generate?None, build modes are IDE concept. The compiler knows nothing about it. QuoteIs it possible to use build modes in source code only, thus making them easier to compare?I don't quite understand what you mean. QuoteIn fact I would like to know how IDE settings in general get translated to compiling and linking commands.Each settings represent a compiler option, the IDE simply concat and pass them to the compiler. We normally don't need to call the linker manually, the compiler will do that automatically, both for internal and external linker. There are compiler options for controlling what to pass to the linker, though. QuoteDoes it all go into ppas.bat?AFAIK this file is only generated when "omit linking stage" (or the less "Do not call assembler and linker) option is given, to allow manual modification before building the executable. ---------------------------------------------------------------------- vfclists · 2014-07-11 18:45 Quote from: marcov on July 10, 2014, 05:30:11 pmppas.bat is generated by the compiler. Buildmodes is a pure Lazarus concept. So both are unrelated. Probably you can access buildmodes commandline using lazbuild, but that might only be for running, not editing. Does the IDE have an option to generate lazbuild commands which can be saved as a file and executed as needed, or does it create a file for the last build which remains  until overwritten by the next build? On a general note can the IDE compiling commands be saved to files and executed? ---------------------------------------------------------------------- JuhaManninen · 2014-07-11 21:11 Lazarus trunk now has a feature of building many buildmodes at one go. See Run -> Build many Modes ... Generated options for the current mode can be seen from Project options -> "Show Options" button (at bottom of the dialog). There select the text and copy. If you want to compare the modes in textual form, it is possible because they are stored in XML files. The default location is the project .lpi file which has XML format. A mode is stored in session .lps file if the Build Mode Manager window (on top of project options) has "In session" checked for that mode. The session .lps file has a similar XML format. Now in trunk you can also export many modes to an XML file of your choice. See Project options -> Export (at bottom of the dialog). This is not exactly what you wanted but close.