Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I build Debug and Release at once?

Tags:

When I select menu BuildBuild or anything else, it only builds the currently selected configuration (Debug or Release). How can I make it build, for example, Release also when I'm in "Debug mode" (I have debug selected)?

like image 843
IAdapter Avatar asked Feb 12 '11 20:02

IAdapter


People also ask

Can you debug a Release build?

You can now debug your release build application. To find a problem, step through the code (or use Just-In-Time debugging) until you find where the failure occurs, and then determine the incorrect parameters or code.

Is Release build faster than debug?

Lots of your code could be completely removed or rewritten in Release mode. The resulting executable will most likely not match up with your written code. Because of this release mode will run faster than debug mode due to the optimizations.

Are debug builds slower?

It is well-known that Debug build in Visual C++ is very slow compared to Release build, with the typical ratio about 10-20 times.

How do you debug a build?

C++Builder does not support multiple build configurations for a single project, but it does provide an easy way produce a debug build. To request a debug build, go to Project Options → Compiler and press Full debug. This will disable optimization and inlining and enable debugging information.


2 Answers

You can do this with "Batch Build", although it's not available in the Express version.

Anyway, you don't want to be building from the GUI anyway. You should be using MSBuild or something of that nature to automate your build process.

like image 60
David Heffernan Avatar answered Nov 03 '22 23:11

David Heffernan


In the Visual Studio GUI, go to the menu

BuildBatch Build

This will pop up a window with all the possible combinations of projects and their configurations. Select all the items you want to build together and click the Build button on the right side of the window.

That's it.

There is also a button to rebuild a group of configurations instead of build (which is an incremental build).

There is also an option to select/deselect all configurations/projects to build/rebuild.

like image 34
Kartik Podugu Avatar answered Nov 03 '22 23:11

Kartik Podugu