Bug 352957 - "Project build" behaviour errorneuous
Summary: "Project build" behaviour errorneuous
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 309769
  Show dependency tree
 
Reported: 2011-07-24 15:15 EDT by Mikael CLA
Modified: 2020-09-04 15:20 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael CLA 2011-07-24 15:15:14 EDT
Build Identifier: I20110613-1736

The CDT option "Build scope" leads to unnecessary rebuilds for the command "Build Project" with referenced projects.

Two projects: Project_A and Project_B, each with two configurations "Debug" and "Release". Define References Project_A/Release -> Project_B/Release and Project_A/Debug -> Project_B/Debug.

The option "Build Scope" is set tp "Build active configuration in each project".

Chose as active configuration "Release" for both projects: In both projects will be built the "Release" configuration.

Change active configuration to "Debug" for Project_A: In Project_A will be built the configuration "Debug"; in Project_B will be built "Debug" as well as "Release".

That's completely unnecessary for the command "Build Project". It should build the selected project and the referenced projects with the referenced configuration only. The currently observed behaviour is only reasonable for the command "Build All Projects".

It is an important problem due to the fact that this is time consuming in larger projects.

Reproducible: Always
Comment 1 Chris P. CLA 2012-06-23 02:05:45 EDT
Bumping up this bug since I concur this bug is a huge waste of time especially for project with cross-platform build configurations. If the active build of a linked project is left on the wrong setting:
1) eclipse spent many cycle to perform a useless build 
2) the build reports errors/warnings which are unrelated to the target being build (for example cross platform include/link issue if the active configuration was for Win environment and current host is Linux)
Comment 2 Brian Svihovec CLA 2012-12-14 10:25:39 EST
*** Bug 396593 has been marked as a duplicate of this bug. ***