Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313416

Summary: CDT quadratic build formula
Product: [Tools] CDT Reporter: Andrew Gvozdev <angvoz.dev>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: jamesblackburn+eclipse, yevshif
Version: 7.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Andrew Gvozdev CLA 2010-05-18 14:12:58 EDT
There is a preference Build Scope. If it is set to "Build all configurations in each project" then context menu action "Build Configurations"->"Build All" (or "Build Selected") is multiplied by the number of configurations. If you got 3 configs "Build All" builds 9 times according to the quadratic formula. It's easy to see that when Build Console preference "Always clear console before building" is cleared.
Comment 1 James Blackburn CLA 2010-05-18 14:23:04 EDT
We really need to rethink the main builder, perhaps in consultation with the platform.

It's currently impossible to know what to build for both the MBS builder and for callers of #build on core.resources (e.g. launches).
Comment 2 Andrew Gvozdev CLA 2010-05-18 14:47:22 EDT
I agree with you in general of course, there should be more elaborate and accurate way to build in the platform.

The cause of this particular curiosity is that we pass list of configurations in arguments and there is additional if(needAllConfigBuild()) loop in CommonBuilder. I think there shouldn't be that loop in CommonBuilder, configurations could be passed via arguments in unified way. I suppose the arguments would still be there as the way of passing context in the future improved build.