Bug 571832 - Eclipse builds un-needed configurations of dependent projects
Summary: Eclipse builds un-needed configurations of dependent projects
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 10.1.0   Edit
Hardware: PC Windows 10
: 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: 2021-03-10 03:08 EST by David Crocker CLA
Modified: 2021-03-10 03:08 EST (History)
2 users (show)

See Also:


Attachments
Console outputs from Eclipse (13.25 KB, text/plain)
2021-03-10 03:08 EST, David Crocker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Crocker CLA 2021-03-10 03:08:15 EST
Created attachment 285787 [details]
Console outputs from Eclipse

I have a large C/C++ project (RepRapFirmware) that depends on several other projects (CANlib, FreeRTOS, RRFLibraries, CoreN2G). Each project has multiple configurations. In each project I have correctly recorded which configurations of which other projects each configuration depends on.

What I find is that when building RepRapFirmware, as well as building the required configuration of each dependent project, Eclipse also builds the active configuration of each dependent project. If the active configuration is the same as the required one, Eclipse builds it twice.

Attached is a file containing the console output from each project after I cleared the consoles in each project, selected the RepRapFirmware project and clicked Build. This shows:

CANlib: the active configuration was the same as the required one, so Eclipse built it twice

CoreN2G: Eclipse built the active configuration SAMC21_CAN_RTOS as well as the required configuration SAME70_CAN_SDHC_USB_RTOS

FreeRTOS: Eclipse built the active configuration SAM4E as well as the required configuration SAME70

RRFLibraries: Eclipse built the active configuration SAMC21_RTOS as well as the required configuration SAME70_RTOS

All the projects are available at https://github.com/Duet3D.