Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313416 - CDT quadratic build formula
Summary: CDT quadratic build formula
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-18 14:12 EDT by Andrew Gvozdev CLA
Modified: 2020-09-04 15:17 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.