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

Bug 333992

Summary: Need option to build last configuration built (and not current selection)
Product: [Tools] CDT Reporter: James Blackburn <jamesblackburn+eclipse>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: ASSIGNED --- QA Contact: Jonah Graham <jonah>
Severity: enhancement    
Priority: P3 CC: cdtdoug, eclipse, yevshif
Version: 8.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Bug Depends on: 331031, 334113    
Bug Blocks:    
Attachments:
Description Flags
patch 1 none

Description James Blackburn CLA 2011-01-11 10:41:06 EST
The Build Hammer action builds whatever is currently selected.

This is problematic when using references, as say an error is reported in a referenced header.  Having fixed the error, the user requests a build, and only the project containing the .h is built, not the top-level project the user was building...

I envisage this would work similarly to the LaunchHistory, and there'd be a preference to control whether current selection or last item in history is built.
Comment 1 James Blackburn CLA 2011-01-14 15:16:01 EST
Created attachment 186847 [details]
patch 1

Implementation. Requires CDT builder learns about configurations.
Comment 2 ewald CLA 2011-03-28 02:42:30 EDT
Being used to MS Visual Studio so far (with around 100 subprojects) I would like to have either:

- "re-build last project"

or rather

- introduce some kind of "active project"
- run "build active project"

In Visual Studio I hit two keys to compile the whole project and to start debugging without fiddling with the mouse in context menus.

As a workaround you can select a project in the explorer and invoke "build project". But it is easy to inadvertently select the wrong project, especially when "link with editor" is active.
Comment 3 James Blackburn CLA 2012-06-27 16:54:21 EDT
patchset at:
https://github.com/jamesblackburn/cdt/tree/bug/333992_build_history