Using Build Configurations Node

From RAD Studio
Jump to: navigation, search


The Build Configurations node lists various build configurations you have for your project. The IDE contains two build configurations (Debug and Release). There is a default build configuration which is called Base.

Base Configuration

The Base configuration acts as a base set of option values that is used in all the configurations you subsequently create. The option values mentioned, are the compiling and linking and other set of options you can alter for your project using the Project Options dialog (Project > Options).

You can change the option values in any configuration, including Base. You can delete the Debug and Release configurations, but you cannot delete the Base configuration.

Debug Configuration

The Debug configuration extends Base by disabling optimization and enabling debugging, as well as setting specific syntax options.

The default build configuration Debug, that is located in the Project Manager for your Delphi project, is created by Delphi after you created a new application/project.

Note: Debug configuration should be active and used while you are developing and debugging and changing your application.

Release Configuration

The Release configuration extends Base to not produce symbolic debugging information, as well as the code is not generated for TRACE and ASSERT calls, meaning the size of your executable is reduced.

The default build configuration Release, that is located in the Project Manager for your Delphi projdct, is created by Delphi after you created a new application/project.

Note: Release configuration should be activated when you are building your application so that the produced executable file to be sent to the users.

Specific Options

Navigate to Project > Options > Delphi Compiler > Compiling and set the specific options:

Specific Options

Code generation

Debugging

Optimization

Stack Frames

Debug Information

Local symbols

Debug configuration

OFF

The compiler will NOT perform a number of code optimizations.

ON

Stack frames are always generated for procedures and functions.

ON

When a program or unit is compiled with this option enabled, the integrated debugger lets you single-step and set breakpoints.

ON

When a program or unit is compiled with this option enabled, the integrated debugger lets you examine and modify the module's local variables.

Release configuration

ON

The compiler will perform a number of code optimizations.

OFF

Stack frames are NOT generated for procedures and functions.

OFF

When a program or unit is compiled with this option enabled, the integrated debugger does NOT let you single-step and set breakpoints.

OFF

When a program or unit is compiled with this option enabled, the integrated debugger does NOT let you examine and modify the module's local variables.