[RESOLVED] Separate Debug and Release Folder -> EXE's lazarus / 11-Options ---------------------------------------------------------------------- pixelink · 2016-08-19 18:24 In .NET (most IDE's)... When you compile & run in "debug" mode, it creates the EXE in "bin" folder or root But, when you compile in "Release or Publish"... it goes to a Release folder. I checked in the folder and didn't see the settings. Is it possible in LAZ?? I'm asking because, I know how to switch off the "Debug" data when I want to knock down my EXE size. But, everytime I want to create a release, I have to remeber to do this. Where as, if I were able to do one setting for debug and one for releases (to keep size of exe down) I would want the debug version of EXE to stay in root, but create a Release folder where final, smaller exe is compiled too. Make sense?? ---------------------------------------------------------------------- Leledumbo · 2016-08-19 18:37 Quote from: technipixel on August 19, 2016, 08:24:03 pmIn .NET (most IDE's)... When you compile & run in "debug" mode, it creates the EXE in "bin" folder or root But, when you compile in "Release or Publish"... it goes to a Release folder. I checked in the folder and didn't see the settings. Is it possible in LAZ?? I'm asking because, I know how to switch off the "Debug" data when I want to knock down my EXE size. But, everytime I want to create a release, I have to remeber to do this. Where as, if I were able to do one setting for debug and one for releases (to keep size of exe down) I would want the debug version of EXE to stay in root, but create a Release folder where final, smaller exe is compiled too. Make sense?? Each build mode contains separate settings for nearly everything, including folder location (Project Options->Compiler Options->Paths), so just set up different -o for each build mode. ---------------------------------------------------------------------- Cyrax · 2016-08-19 18:40 In Project options -> Compiler Options -> Paths: Unit output directory: lib\$(TargetCPU)-$(TargetOS)-$(LCLWidgetType)- $FPC_FULLVERSION()-$BuildMode() Target file name : bin\$(TargetCPU)-$(TargetOS)-$(LCLWidgetType)- $FPC_FULLVERSION()-$BuildMode()\project1 Then create separate build modes for Debug and Release in the build mode dialog. You can get the build mode dialog by clicking on a button at next of "Build modes" checkbox and combo box. ---------------------------------------------------------------------- JuhaManninen · 2016-08-19 18:40 Use build modes. The wiki page is a little outdated, somebody should update it.  http://wiki.freepascal.org/IDE_Window:_Compiler_Options Managing build modes happens in a separate window, opened from a button at top of compiler options pages. ---------------------------------------------------------------------- pixelink · 2016-08-19 19:01 Okay.... great. I will check it out. ---------------------------------------------------------------------- pixelink · 2016-08-19 20:59 Okay... successful!!! THANKS!!